Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
</build>
</profile>

<!-- This profile verifies the binary compablity with the jsf api of the RI -->
<!-- This profile verifies the binary compatibility with the jsf api of the RI -->
<profile>
<id>checkCompatibility</id>
<build>
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/faces/component/UIViewRoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ public void process(FacesContext context, UIViewRoot root)
}

/**
* Agregates events for ANY_PHASE and current phase
* Aggregates events for ANY_PHASE and current phase
*/
private static class Events
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public class MyfacesConfig
/**
* This param makes h:form component to render the view state and other hidden fields
* at the beginning of the form. This also includes component resources with target="form",
* but it does not include legacy 1.1 myfaces specific hidden field adition.
* but it does not include legacy 1.1 myfaces specific hidden field addition.
*/
@JSFWebConfigParam(since = "2.2.4", defaultValue = "false", expectedValues = "true,false",
group="render")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ else if (isDoKeepPromotion(facesContext))
* This occur when the ELResolver try to get the keep object.
*
* Note that when "keep" is resolved by FlashELResolver,
* we need a way to comunicate that the current lookup is
* we need a way to communicate that the current lookup is
* for keep promotion.
*
* This var do the job.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,11 @@ public void encodeEnd(FacesContext facesContext, UIComponent c) throws IOExcepti
responseWriter = (ResponseWriter) ((FacesWrapper) responseWriter).getWrapped();
}

HtmlBufferResponseWriterWrapper htmlBufferResponseWritter =
HtmlBufferResponseWriterWrapper htmlBufferResponseWriter =
(HtmlBufferResponseWriterWrapper) responseWriter;
init.getUIWebsocketMarkupList().add(htmlBufferResponseWritter.toString());
init.getUIWebsocketMarkupList().add(htmlBufferResponseWriter.toString());

facesContext.setResponseWriter(htmlBufferResponseWritter.getInitialWriter());
facesContext.setResponseWriter(htmlBufferResponseWriter.getInitialWriter());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static Collection<ClientBehaviorContext.Parameter> getClientBehaviorConte
*
* @param eventName event name ("onclick" etc...)
* @param config the {@link MyfacesConfig}
* @param uiComponent the component which has the attachement (or should have)
* @param uiComponent the component which has the attachment (or should have)
* @param facesContext the facesContext
* @param params params map of params which have to be dragged into the request
* @return a string representation of the javascripts for the attached event behavior,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public class CsrfSessionTokenFactorySecureRandom extends CsrfSessionTokenFactory
* By default is SHA1PRNG
*/
@JSFWebConfigParam(since="2.2.0", defaultValue="SHA1PRNG", group="state")
public static final String RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_ALGORITM_PARAM
= "org.apache.myfaces.RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_ALGORITM";
public static final String RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_ALGORITHM_PARAM
= "org.apache.myfaces.RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_ALGORITHM";

private final SessionIdGenerator sessionIdGenerator;
private final int length;
Expand Down Expand Up @@ -87,7 +87,7 @@ public CsrfSessionTokenFactorySecureRandom(FacesContext facesContext)

String secureRandomAlgorithm = WebConfigParamUtils.getStringInitParameter(
facesContext.getExternalContext(),
RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_ALGORITM_PARAM);
RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_ALGORITHM_PARAM);
if (secureRandomAlgorithm != null)
{
sessionIdGenerator.setSecureRandomAlgorithm(secureRandomAlgorithm);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* The methods here are only used by the current implementation and the intention
* is not expose it as public api.
*
* Aditionally, it also contains methods used by the current implementation for
* Additionally, it also contains methods used by the current implementation for
* implement new features, like composite components and UniqueIdVendor support.
*
* @author Leonardo Uribe (latest modification by $Author$)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private static DuplicateIdException createAndQueueException(FacesContext context
}
}

// 2) we store the first commponent in exception attributes
// 2) we store the first component in exception attributes
DuplicateIdException duplicateIdException = new DuplicateIdException(message, firstComponent, component);

ExceptionQueuedEventContext exceptionContext = new ExceptionQueuedEventContext(context, duplicateIdException,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ private void decreaseComponentLevelMarkedForDeletion()
_deletionLevel--;
}

/** Mark a component to be deleted from the tree. The component to be deleted is addded on the
/** Mark a component to be deleted from the tree. The component to be deleted is added on the
* current level. This is done from ComponentSupport.markForDeletion
*
* @param id
Expand Down Expand Up @@ -1073,7 +1073,7 @@ public VisitContextFactory getVisitContextFactory()
{
if (_visitContextFactory == null)
{
// Store it in application map improve performance because it avoids FactoryFinde.getFactory(...) call
// Store it in application map improve performance because it avoids FactoryFinder.getFactory(...) call
// which has synchronized blocks.
_visitContextFactory = (VisitContextFactory) _facesContext.getExternalContext().getApplicationMap()
.computeIfAbsent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void processAction(ActionEvent evt) throws AbortProcessingException
{
Class<?> targetType = _target.getType(elContext);
// Spec says: "all getType() on the "value" to determine property type" but it is not necessary
// beacuse type we have objValue already
// because type we have objValue already

// Coerce the value of the "value" expression to
// the "target" expression value type following the Expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ public void onStartup(Set<Class<?>> clazzes, ServletContext servletContext) thro
servletContext.setAttribute(MyFacesHttpSessionListener.APPLICATION_MAP_KEY, httpSessionListener);


boolean startDireclty = shouldStartupRegardless(servletContext);
if (startDireclty)
boolean startDirectly = shouldStartupRegardless(servletContext);
if (startDirectly)
{
// if the INITIALIZE_ALWAYS_STANDALONE param was set to true,
// we do not want to have the FacesServlet being added, we simply
Expand Down
2 changes: 1 addition & 1 deletion impl/src/test/java/jakarta/faces/FactoryFinderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public void testSetFactoryNoEffect() throws Exception
}

/*
* Adding factories should add the class name to the list of avalable class names Test method for
* Adding factories should add the class name to the list of available class names Test method for
* 'jakarta.faces.FactoryFinder.setFactory(String, String)'
*/
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void setUp() throws Exception
}

@Test
public void testWithNullExperession() throws Exception
public void testWithNullExpression() throws Exception
{
try
{
Expand All @@ -62,7 +62,7 @@ public void testWithNullExperession() throws Exception
}

@Test
public void testWithEmptyExperession() throws Exception
public void testWithEmptyExpression() throws Exception
{
Assertions.assertNull(_testImpl.findComponent(""));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
* <p>In addition, appropriate factory classes will have been registered with
* <code>jakarta.faces.FactoryFinder</code> for <code>Application</code> and
* <code>RenderKit</code> instances. The created <code>FacesContext</code>
* instance will also have been registered in the apppriate thread local
* instance will also have been registered in the appropriate thread local
* variable, to simulate what a servlet container would do.</p>
*
* <p><strong>WARNING</strong> - If you choose to subclass this class, be sure
Expand Down
2 changes: 1 addition & 1 deletion test/src/main/java/org/apache/myfaces/test/mock/_Hex.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ protected static int toDigit(char ch, int index) throws Exception
int digit = Character.digit(ch, 16);
if (digit == -1)
{
throw new Exception("Illegal hexadecimal charcter " + ch
throw new Exception("Illegal hexadecimal character " + ch
+ " at index " + index);
}
return digit;
Expand Down