[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3863) Rerender is stronger than the pages.xml
by joe Koch (JIRA)
Rerender is stronger than the pages.xml
---------------------------------------
Key: JBSEAM-3863
URL: https://jira.jboss.org/jira/browse/JBSEAM-3863
Project: Seam
Issue Type: Bug
Affects Versions: 2.1.0.GA
Reporter: joe Koch
Priority: Trivial
hi,
we had a bit a strange thing on one of our pages after we added a a4j thing.
as it used to work correctly:
we entered a value in a field, the browser gave us some values we entered before (auto completion). when we left the focus on the input field, the "drop down list" was still there, and we pressed a button that did a action and left the page via an return code via pages.xml
as we liked the input field to be formatted nicely we added a
<a4j:support event="onchange" reRender="selectUnderlyingForm"/>
so now the imput field was renderd as wished when we left the field.
But when we left the page (with the action button) and had the values on the auto completion on the input field, the action from the button was called and exited correctly but the page reload it self an did not redirect as told on the pages.xml => we never left the original page.
we searched for days, till we found out that the render of the "onchange" was stronger than the pages.xml, without the a4j everything is working correctly.
we did some test with the "live http headers" and saw that first the rerender goes to the server and than the button click. what is correct.
as i had not enough knowledge i was not able to see the responds for that page. may that came synchronous back after the button action?
i guess seam should stop comunication with the page as soon as it comes to the pages.xml. i guess this is the problem.
this is not an important issue but someting hard to find!
if you need any more information i am glad to help you.
best regards
<td class="prodTableCell">
<s:decorate id="issueSizeDecorator">
<h:inputText label="#{messages['issueSize']}" styleClass="numberInput" id="issueSize" required="true" value="#{product.issueSize}">
<f:convertNumber integerOnly="true" pattern="###,###,###" locale="de_CH"/>
<a4j:support event="onchange" reRender="selectUnderlyingForm"/>
<xxx:productRangeValidator/>
<f:attribute name="product" value="#{product}"/>
<f:attribute name="fieldName" value="issueSize"/>
</h:inputText> </s:decorate> </td>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3861) support more detailed TransactionSuccessEvent when update,persist,remove entity
by zhou yanming (JIRA)
support more detailed TransactionSuccessEvent when update,persist,remove entity
-------------------------------------------------------------------------------
Key: JBSEAM-3861
URL: https://jira.jboss.org/jira/browse/JBSEAM-3861
Project: Seam
Issue Type: Feature Request
Components: Framework
Affects Versions: 2.1.0.GA
Reporter: zhou yanming
sometimes we want to synchronize particular entity to other seam compenont,so need to raise event with this entity and transaction type.
org.jboss.seam.framework.Home:
change
protected void raiseAfterTransactionSuccessEvent()
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess");
String simpleEntityName = getSimpleEntityName();
if (simpleEntityName != null)
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess." + simpleEntityName);
}
}
to
protected void raiseAfterTransactionSuccessEvent(Ojbect... params)
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess");
String simpleEntityName = getSimpleEntityName();
if (simpleEntityName != null)
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess." + simpleEntityName);
}
if (simpleEntityName != null && params.length==1)
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess." + simpleEntityName+"."+params[0]);
}
if (simpleEntityName != null && params.length==2)
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess." + simpleEntityName+"."+params[0],params[1]);
}
}
org.jboss.seam.framework.EntityHome{
change
raiseAfterTransactionSuccessEvent();
to
raiseAfterTransactionSuccessEvent("persisted",getInstance());
raiseAfterTransactionSuccessEvent("removed",getInstance());
raiseAfterTransactionSuccessEvent("updated",getInstance());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3608) self-written DataModel as @DataModel
by Juergen Hartler (JIRA)
self-written DataModel as @DataModel
------------------------------------
Key: JBSEAM-3608
URL: https://jira.jboss.org/jira/browse/JBSEAM-3608
Project: Seam
Issue Type: Feature Request
Components: Framework
Affects Versions: 2.0.2.SP1
Reporter: Juergen Hartler
Priority: Minor
Dear Seam-Team!
I have self-written DataModel extending the org.richfaces.model.ExtendedTableDataModel to support true pagination via the database. The only problem is just that the @DataModel tag of seam does not support self-written DataModels. I added manually in the downloaded source code of jboss-seam-2.0.2.SP1 and added to the class org.jboss.seam.faces.DataModels.getDataModel(Object value) the lines:
...
else if (value instanceof DataModel){ return (DataModel)value; }else{ ...
Could you please mind to add this to your next release?
Many thanks, Juergen
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months