JBoss Rich Faces SVN: r9884 - trunk/ui/tree/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-08-04 08:57:57 -0400 (Mon, 04 Aug 2008)
New Revision: 9884
Modified:
trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java
Log:
RF-3653
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java 2008-08-04 12:14:14 UTC (rev 9883)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java 2008-08-04 12:57:57 UTC (rev 9884)
@@ -65,11 +65,13 @@
boolean showLines = tree.isShowConnectingLines();
String id = treeNode.getClientId(context);
- String script;
- if (tree.isExpanded()) {
- script = (String)tree.getAttributes().get("oncollapse");
+ StringBuilder script = new StringBuilder();
+ script.append("Event.findElement(event, 'TABLE').object.");
+ boolean expanded = tree.isExpanded();
+ if (expanded) {
+ script.append("fireCollapsionEvent();");
} else {
- script = (String)tree.getAttributes().get("onexpand");
+ script.append("fireExpansionEvent();");
}
if (UITree.SWITCH_AJAX.equals(tree.getSwitchType())) {
@@ -81,8 +83,7 @@
Map parameters = (Map) eventOptions.get("parameters");
parameters.remove(id);
- parameters.put(id + NODE_EXPANDED_INPUT_SUFFIX, String.valueOf(!tree
- .isExpanded()));
+ parameters.put(id + NODE_EXPANDED_INPUT_SUFFIX, String.valueOf(!expanded));
parameters.put(id + AJAX_EXPANDED_SUFFIX, Boolean.TRUE);
function.addParameter(eventOptions);
@@ -106,7 +107,7 @@
result.append("params['");
result.append(paramName);
result.append("'] = ");
- result.append(!tree.isExpanded());
+ result.append(!expanded);
result.append(';');
result.append("Richfaces.jsFormSubmit('");
result.append(id);
16 years, 7 months
JBoss Rich Faces SVN: r9883 - trunk/test-applications/facelets/src/main/webapp/styles.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-08-04 08:14:14 -0400 (Mon, 04 Aug 2008)
New Revision: 9883
Modified:
trunk/test-applications/facelets/src/main/webapp/styles/styles.css
Log:
Modified: trunk/test-applications/facelets/src/main/webapp/styles/styles.css
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/styles/styles.css 2008-08-04 12:13:41 UTC (rev 9882)
+++ trunk/test-applications/facelets/src/main/webapp/styles/styles.css 2008-08-04 12:14:14 UTC (rev 9883)
@@ -47,7 +47,7 @@
.style {
background: teal;
border: solid 3px red;
- font: bold 14px;
+ font: 14px arial bold;
}
/* inputNumderSlider Styles */
@@ -65,7 +65,7 @@
.tipStyle {
border: green 3px solid;
background-color: yellow;
- font: italic bold 14px;
+ font: 14px san-serif italic;
}
.handleStyle {
@@ -77,32 +77,32 @@
.activeTabStyle {
background: lime;
border: solid 3px black;
- font: italic 14px;
+ font: 14px arial italic ;
}
.inactiveTabStyle {
background: gray;
border: solid 3px blue;
- font: bold 14px;
+ font: 14px san-serif bold ;
}
.disabledTabStyle {
background: silver;
border: dotted 3px blue;
- font: small-caps 14px;
+ font: 14px small-caps normal;
}
.contentStyle {
background: silver;
- border: 1px red;
- font: 20px;
+ border: 1px red solid;
+ font: 20px tahoma normal;
}
/* inputNumerSpinner Styles*/
.inputStyle {
background: aqua;
border: thin red;
- font: fantasy 15px;
+ font: 15px fantasy normal;
}
/* ToolBar Styles*/
@@ -248,8 +248,9 @@
}
.body {
- background-color: pink;
+ background-color: purple;
}
.test{
- color: green;
+ color: red;
+ background-color:red;
}
\ No newline at end of file
16 years, 7 months
JBoss Rich Faces SVN: r9882 - trunk/ui/calendar/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-08-04 08:13:41 -0400 (Mon, 04 Aug 2008)
New Revision: 9882
Modified:
trunk/ui/calendar/src/main/config/component/calendar.xml
Log:
https://jira.jboss.org/jira/browse/RF-696
correcting attribute description
Modified: trunk/ui/calendar/src/main/config/component/calendar.xml
===================================================================
--- trunk/ui/calendar/src/main/config/component/calendar.xml 2008-08-04 12:11:39 UTC (rev 9881)
+++ trunk/ui/calendar/src/main/config/component/calendar.xml 2008-08-04 12:13:41 UTC (rev 9882)
@@ -243,7 +243,8 @@
<classname>boolean</classname>
<description>
"false" value for this attribute makes text
- field invisible. If "true" - input field will
+ field invisible. It works only if popupMode="true"
+ If showInput is "true" - input field will
be shown. Default value is "true".
</description>
<defaultvalue>true</defaultvalue>
16 years, 7 months
JBoss Rich Faces SVN: r9881 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-08-04 08:11:39 -0400 (Mon, 04 Aug 2008)
New Revision: 9881
Modified:
trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
Log:
Replacement of 'dnd' prefix with 'rich' in code examples.
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2008-08-04 11:42:30 UTC (rev 9880)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2008-08-04 12:11:39 UTC (rev 9881)
@@ -51,15 +51,15 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <dnd:dragIndicator id="indicator">
+ <rich:dragIndicator id="indicator">
<f:facet name="single">
<f:verbatim>
<b>Single item</b> {DragInfo}
</f:verbatim>
</f:facet>
- </dnd:dragIndicator>
+ </rich:dragIndicator>
...
- <dnd:dragSupport dragType="text" dragIndicator="indicator">
+ <rich:dragSupport dragType="text" dragIndicator="indicator">
...
]]></programlisting>
</section>
@@ -117,11 +117,11 @@
</itemizedlist>
<para> For instance, this:</para>
<programlisting role="XML"><![CDATA[...
- <dnd:dropSupport...>
- <dnd:dndParam name="testDrop">
+ <rich:dropSupport...>
+ <rich:dndParam name="testDrop">
<h:graphicImage value="/images/file-manager.png" />
- </dnd:dndParam>
- </dnd:dropSupport>
+ </rich:dndParam>
+ </rich:dropSupport>
...
]]></programlisting>
<para>Is placed into indicator as follows:</para>
16 years, 7 months
JBoss Rich Faces SVN: r9880 - Panel and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-08-04 07:42:30 -0400 (Mon, 04 Aug 2008)
New Revision: 9880
Modified:
management/design/Split Panel component/Func-Spec-Split Panel.doc
Log:
split panel draft
Modified: management/design/Split Panel component/Func-Spec-Split Panel.doc
===================================================================
(Binary files differ)
16 years, 7 months
JBoss Rich Faces SVN: r9879 - trunk/ui/columns/src/main/java/org/richfaces/taglib.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-08-04 07:13:15 -0400 (Mon, 04 Aug 2008)
New Revision: 9879
Modified:
trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsTag.java
Log:
Add advanced log message
Modified: trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsTag.java
===================================================================
--- trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsTag.java 2008-08-04 08:54:49 UTC (rev 9878)
+++ trunk/ui/columns/src/main/java/org/richfaces/taglib/ColumnsTag.java 2008-08-04 11:13:15 UTC (rev 9879)
@@ -759,7 +759,7 @@
return new IteratedValueExpression(iteratedExpression, index);
}
- throw new ELException("FOREACH_BAD_ITEMS");
+ throw new ELException("FOREACH_BAD_ITEMS: [" + o.getClass().getName() + "] is not iterable item. Only [List, Array, Collection, Enumeration, Map, String] are supported.");
}
/*
16 years, 7 months
JBoss Rich Faces SVN: r9878 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-08-04 04:54:49 -0400 (Mon, 04 Aug 2008)
New Revision: 9878
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
https://jira.jboss.org/jira/browse/RF-3892 - State Manager API section done
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-08-04 08:54:25 UTC (rev 9877)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-08-04 08:54:49 UTC (rev 9878)
@@ -4419,6 +4419,16 @@
So you could define input fields values, controls labels, actions, rendering conditions, etc.
using the same state variables which have different values for every State.
</para>
+ <figure>
+ <title>
+ RichFaces State API
+ </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/stateapi3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
<para>
Actually States is a <property>map</property> where the entry key is name of the State and the value is a State map.
Concrete State map has entries with some names as keys and any objects as values.
@@ -4479,10 +4489,10 @@
</managed-bean>
...]]></programlisting>
<para>
- One bean (<code>org.richfaces.demo.stateApi.Config</code>) defines and stores states.
+ One bean ("config") defines and stores states.
</para>
<para>
- The other bean (<code>org.richfaces.ui.model.States</code>) with the type <code>org.richfaces.ui.model.States</code> has
+ The other bean ("state") with the type <code>org.richfaces.ui.model.States</code> has
the "states" managed property that is bound to the "config" bean which defines states.
</para>
</listitem>
16 years, 7 months
JBoss Rich Faces SVN: r9877 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-08-04 04:54:25 -0400 (Mon, 04 Aug 2008)
New Revision: 9877
Added:
trunk/docs/userguide/en/src/main/resources/images/stateapi1.png
trunk/docs/userguide/en/src/main/resources/images/stateapi2.png
trunk/docs/userguide/en/src/main/resources/images/stateapi3.png
Log:
https://jira.jboss.org/jira/browse/RF-3892 - images for State Manager API section were added
Added: trunk/docs/userguide/en/src/main/resources/images/stateapi1.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/stateapi1.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/stateapi2.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/stateapi2.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/stateapi3.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/stateapi3.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
16 years, 7 months
JBoss Rich Faces SVN: r9876 - trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: piotr.buda
Date: 2008-08-04 04:53:48 -0400 (Mon, 04 Aug 2008)
New Revision: 9876
Modified:
trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/component/UIExtendedDataTable.java
Log:
Event source is checked and events not from EDT are being bubbled up
Modified: trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/component/UIExtendedDataTable.java
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/component/UIExtendedDataTable.java 2008-08-04 08:51:37 UTC (rev 9875)
+++ trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/component/UIExtendedDataTable.java 2008-08-04 08:53:48 UTC (rev 9876)
@@ -74,29 +74,26 @@
}
public void queueEvent(FacesEvent event) {
- //TODO nick - queued events can be bubbled from nested component and not generated
- // by the table itself. Please check source of the event!
- if (event instanceof AjaxEvent) {
- event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
- } else if (event instanceof DragDropEvent) {
- new AjaxEvent(this).queue();
- event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
- // event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
- // new AjaxEvent(this).queue();
- } else if (event instanceof ChangeColumnVisibilityEvent) {
- new AjaxEvent(this).queue();
- event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
- } else if (event instanceof ColumnResizeEvent) {
- // new AjaxEvent(this).queue();
- event.setPhaseId(PhaseId.RENDER_RESPONSE);
- } else if (event instanceof ExtTableSortEvent) {
- new AjaxEvent(this).queue();
- event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
- } else if (event instanceof ExtTableFilterEvent) {
- new AjaxEvent(this).queue();
- event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
- }
- super.queueEvent(event);
+ if(event.getSource() instanceof UIExtendedDataTable) {
+ if (event instanceof AjaxEvent) {
+ event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+ } else if (event instanceof DragDropEvent) {
+ new AjaxEvent(this).queue();
+ event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+ } else if (event instanceof ChangeColumnVisibilityEvent) {
+ new AjaxEvent(this).queue();
+ event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+ } else if (event instanceof ColumnResizeEvent) {
+ event.setPhaseId(PhaseId.RENDER_RESPONSE);
+ } else if (event instanceof ExtTableSortEvent) {
+ new AjaxEvent(this).queue();
+ event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+ } else if (event instanceof ExtTableFilterEvent) {
+ new AjaxEvent(this).queue();
+ event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+ }
+ }
+ super.queueEvent(event);
}
public Iterator<UIColumn> getSortedColumns() {
16 years, 7 months
JBoss Rich Faces SVN: r9875 - trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: pgolawski
Date: 2008-08-04 04:51:37 -0400 (Mon, 04 Aug 2008)
New Revision: 9875
Modified:
trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/RichTableMenuRenderer.java
trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/SimpleTableMenuRenderer.java
trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/TableMenuRenderer.java
Log:
used InternetResource
Modified: trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/RichTableMenuRenderer.java
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/RichTableMenuRenderer.java 2008-08-04 08:21:47 UTC (rev 9874)
+++ trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/RichTableMenuRenderer.java 2008-08-04 08:51:37 UTC (rev 9875)
@@ -8,10 +8,10 @@
import javax.faces.component.UIComponent;
-import org.ajax4jsf.Messages;
import org.ajax4jsf.javascript.JSFunction;
import org.ajax4jsf.javascript.JSFunctionDefinition;
import org.ajax4jsf.javascript.JSReference;
+import org.ajax4jsf.resource.InternetResource;
import org.richfaces.component.UIColumn;
import org.richfaces.component.UIContextMenu;
import org.richfaces.component.UIMenuGroup;
@@ -48,62 +48,19 @@
/*
* Icon URIs
*/
- private static String iconColumnsURI;
- private static String iconSortAscURI;
- private static String iconSortDescURI;
- private static String iconGroupURI;
- private static String iconCheckedURI;
- private static String iconUncheckedURI;
+ private static String iconColumnsURI = InternetResource.RESOURCE_URI_PREFIX + "/org/richfaces/renderkit/html/images/columns.png";
+ private static String iconSortAscURI = InternetResource.RESOURCE_URI_PREFIX + "/org/richfaces/renderkit/html/images/menu-sort-asc.png";
+ private static String iconSortDescURI = InternetResource.RESOURCE_URI_PREFIX + "/org/richfaces/renderkit/html/images/menu-sort-desc.png";
+ private static String iconGroupURI = InternetResource.RESOURCE_URI_PREFIX + "/org/richfaces/renderkit/html/images/group-by.png";
+ private static String iconCheckedURI = InternetResource.RESOURCE_URI_PREFIX + "/org/richfaces/renderkit/html/images/checked.gif";
+ private static String iconUncheckedURI = InternetResource.RESOURCE_URI_PREFIX + "/org/richfaces/renderkit/html/images/unchecked.gif";
- /**
- * Initializes resources if they are not initialized yet. Each icon URI is
- * kept in class field to ensure that resource URI is build only once.
- */
- private void initResources() {
- if (context == null) {
- throw new NullPointerException(Messages.getMessage(
- Messages.CONTEXT_NULL_ERROR, "initResources"));
- }
-
- if (iconColumnsURI == null) {
- iconColumnsURI = getUri(
- getResource("/org/richfaces/renderkit/html/images/columns.png"),
- context);
- }
- if (iconSortAscURI == null) {
- iconSortAscURI = getUri(
- getResource("/org/richfaces/renderkit/html/images/menu-sort-asc.png"),
- context);
- }
- if (iconSortDescURI == null) {
- iconSortDescURI = getUri(
- getResource("/org/richfaces/renderkit/html/images/menu-sort-desc.png"),
- context);
- }
- if (iconGroupURI == null) {
- iconGroupURI = getUri(
- getResource("/org/richfaces/renderkit/html/images/group-by.png"),
- context);
- }
- if (iconCheckedURI == null) {
- iconCheckedURI = getUri(
- getResource("/org/richfaces/renderkit/html/images/checked.gif"),
- context);
- }
- if (iconUncheckedURI == null) {
- iconUncheckedURI = getUri(
- getResource("/org/richfaces/renderkit/html/images/unchecked.gif"),
- context);
- }
- }// initResources
-
/*
* (non-Javadoc)
*
* @see org.richfaces.renderkit.html.TableMenuRenderer#render()
*/
public String render() throws IOException {
- initResources();
ensureMenuBuilt();
String menuId = menu.getClientId(context);
// render menu
Modified: trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/SimpleTableMenuRenderer.java
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/SimpleTableMenuRenderer.java 2008-08-04 08:21:47 UTC (rev 9874)
+++ trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/SimpleTableMenuRenderer.java 2008-08-04 08:51:37 UTC (rev 9875)
@@ -15,6 +15,8 @@
import org.ajax4jsf.javascript.JSReference;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
+import org.ajax4jsf.resource.InternetResource;
+import org.ajax4jsf.resource.InternetResourceBuilder;
import org.richfaces.component.UIColumn;
/**
@@ -115,9 +117,9 @@
writer.startElement(HTML.IMG_ELEMENT, dataColumn);
writer.writeAttribute(HTML.class_ATTRIBUTE, "dt-menu-item-icon",
null);
- writer.writeAttribute(HTML.src_ATTRIBUTE, getResource(
- "/org/richfaces/renderkit/html/images/s.gif").getUri(
- context, null), null);
+ InternetResource res = InternetResourceBuilder.getInstance().getResource("/org/richfaces/renderkit/html/images/s.gif");
+ writer.writeAttribute(HTML.src_ATTRIBUTE, InternetResourceBuilder
+ .getInstance().getUri(res, context, null), null);
writer.endElement(HTML.IMG_ELEMENT);
String label = (String)dataColumn.getAttributes().get("label");
writer.writeText(label == null ? "" : label, null);
Modified: trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/TableMenuRenderer.java
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/TableMenuRenderer.java 2008-08-04 08:21:47 UTC (rev 9874)
+++ trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/TableMenuRenderer.java 2008-08-04 08:51:37 UTC (rev 9875)
@@ -6,15 +6,11 @@
import java.io.IOException;
import java.io.Serializable;
-import javax.faces.FacesException;
import javax.faces.context.FacesContext;
import org.ajax4jsf.javascript.JSFunction;
import org.ajax4jsf.javascript.JSFunctionDefinition;
-import org.ajax4jsf.resource.InternetResource;
import org.ajax4jsf.resource.InternetResourceBuilder;
-import org.ajax4jsf.resource.ResourceNotFoundException;
-import org.ajax4jsf.webapp.WebXml;
import org.richfaces.component.UIColumn;
import org.richfaces.component.UIExtendedDataTable;
@@ -77,53 +73,6 @@
public abstract JSFunctionDefinition createShowMenuEventFunction();
/**
- * Base stub method for produce Internet resource ( image, script ... )
- * since resources must be implemented in "lightweight" pattern, it
- * instances put in internal map to caching.
- *
- * @param resourceURI -
- * relative ( to renderer class ) URI to resource in jar or key
- * for generate ( in Java2D , for example ).
- * @return - resource instance for this URI.
- * @throws ResourceNotFoundException -
- * if requested resource not instantiated.
- */
- public InternetResource getResource(String resourceURI)
- throws FacesException {
- return getResourceBuilder().createResource(null, resourceURI);
- }
-
- protected static InternetResourceBuilder getResourceBuilder() {
- if (resourceBuilder == null) {
- resourceBuilder = InternetResourceBuilder.getInstance();
- }
- return resourceBuilder;
- }
-
- protected String getUri(InternetResource resource, FacesContext context) {
- return getFacesResourceURL(context, resource.getKey());
- }// getUri
-
- protected String getFacesResourceURL(FacesContext context, String Url) {
- WebXml webXml = WebXml.getInstance(context);
- StringBuffer buf = new StringBuffer();
- //TODO nick - use InternetResourceBuilder
- buf.append(webXml.getResourcePrefix()).append(Url);
- // Insert suffix mapping
- if (webXml.isPrefixMapping()) {
- buf.insert(0, webXml.getFacesFilterPrefix());
- } else {
- int index;
- if ((index = buf.indexOf("?")) >= 0) {
- buf.insert(index, webXml.getFacesFilterSuffix());
- } else {
- buf.append(webXml.getFacesFilterSuffix());
- }
- }
- return buf.toString();
- }// getFacesResourceURL
-
- /**
* Sets function to be called on complete AJAX request fired by menu action
*
* @param functionDefinition
16 years, 7 months