This content has been marked as final.
Show 4 replies
-
1. Re: Disable full page refresh during sorting click ?
ilya_shaikovsky Feb 8, 2010 6:04 AM (in response to boy18nj)use a4j:commandLink -
2. Re: Disable full page refresh during sorting click ?
boy18nj Feb 8, 2010 10:39 PM (in response to ilya_shaikovsky)Sorry this is the right code responsible for sorting out table column's. This is generated by Seam-Gen.
Ilya, i followed your suggestion-
After Changes-
<a4j:commandLink styleClass="columnHeader" value="#{propertyLabel} #{entityList.orderColumn == propertyPath ? (entityList.orderDirection == 'desc' ? messages.down : messages.up) : ''}"> <f:param name="sort" value="#{propertyPath}"/> <f:param name="dir" value="#{entityList.orderColumn == propertyPath and entityList.orderDirection == 'asc' ? 'desc' : 'asc'}"/> </a4j:commandLink>
Now the problem is when i click on the column's name to sort-nothing do happens.
Before Changes-
<s:link styleClass="columnHeader" value="#{propertyLabel} #{entityList.orderColumn == propertyPath ? (entityList.orderDirection == 'desc' ? messages.down : messages.up) : ''}"> <f:param name="sort" value="#{propertyPath}"/> <f:param name="dir" value="#{entityList.orderColumn == propertyPath and entityList.orderDirection == 'asc' ? 'desc' : 'asc'}"/> </s:link>
-
3. Re: Disable full page refresh during sorting click ?
ilya_shaikovsky Feb 9, 2010 5:17 AM (in response to boy18nj)you not defined reRender - so nothing updated. -
4. Re: Disable full page refresh during sorting click ?
boy18nj Feb 9, 2010 11:29 AM (in response to ilya_shaikovsky)ya that's what i realized after posting the message. Thanks Ilya. You rock.