[JBoss Seam] - Re: Trinidad PPR/Ajax and Seam
by smithbstl
Thanks Chris, I have it most of the way working except for a couple of issues.
1. When i use a commandLink to open the dialog, I can't get PPR to refresh the inputText on the orginal page. I keep getting this message
ERROR [STDERR] May 1, 2007 9:11:57 AM org.apache.myfaces.trinidadinternal.renderkit.core.ppr.PPRResponseWriter$PPRTag finish
| WARNING: No PPR-capable id found for elements of CoreInputText[UIXEditableFacesBeanImpl, id=customer_input]. This component has not written-out an id attribute.
customer_input is the inputText I wish to pass the value from the dialog back to.
Here is the relevant part of the page
<tr:inputText id="customer_input"
| value="(Empty)"
| label="Enter New Customer:"
| partialTriggers="dialog_id"/>
| <s:conversationPropagation>
| <tr:commandLink id="dialog_id"
| text="find Customer"
| action="dialog:chooseCustomer"
| useWindow="true" windowHeight="400"
| windowWidth="400" partialSubmit="true"/>
| </s:conversationPropagation>
2. When I use a tr:inputListOfValues component instead (it encapsulates all the functionality I need) the object I hand back to the page is getting its toString method called instead of correctly referencing a property of the object
| <tr:inputListOfValues returnListener="#{requestEntry.processReturn}"
| id="customer_input"
| label="Enter New Customer:"
| value="#{requestEntry.customer.userName}"
| action="dialog:chooseCustomer"/>
The userName property is not being referenced at all and instead the toString method of the customer object is being called instead. It really makes no sense. I have outputed the customer object's properties to the console during the ActionEvent of the dialog and again during ReturnListener of the calling form so I know the object is being passed correctly, its just the value property of the inputListOfValues is being weird.
Thanks for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042097#4042097
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042097
17 years, 1 month
[JBoss jBPM] - jBPM Tasks Question
by mboldisc
Hello,
I am trying to figure out how the DVD Store example sets and retrieves variables from tasks.
The file web/admin/admin.xhtml:
| <h:dataTable rendered="#{not empty pooledTaskInstanceList}"
| var="task"
| styleClass="dvdtable"
| headerClass="dvdtablehead"
| rowClasses="dvdtableodd,dvdtableeven"
| columnClasses="dvdtablecol">
| <h:column>
| <f:facet name="header">Order Id</f:facet>
| #{task.variables['orderId']}
| </h:column>
| <h:column>
| <f:facet name="header">Task</f:facet>
| <h:outputText value="#{task.description}" />
| </h:column>
| <h:column>
| <f:facet name="header">Order Amount</f:facet>
| <h:outputText value="#{task.variables['amount']}">
| <f:convertNumber type="currency" currencySymbol="$" />
| </h:outputText>
| </h:column>
| <h:column>
| <f:facet name="header">Customer</f:facet>
| <h:outputText value="#{task.variables['customer']}" />
| </h:column>
| <h:column>
| <s:button action="#{pooledTask.assignToCurrentActor}" taskInstance="#{task}"
| value="Assign"/>
| </h:column>
| </h:dataTable>
|
How does task.variables['customer'] get set originally?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042088#4042088
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042088
17 years, 1 month