Win a copy of Head First Android this week in the Android forum!

Denis Sysoev

Greenhorn
+ Follow
since Aug 29, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Denis Sysoev

I have found where problem was. When I adding <f:metadata> to the page, NetBeans automatically including xmlns:f="http://xmlns.jcp.org/jsf/core" into namespaces, with this namespace its not working. If i change it to the xmlns:f="http://java.sun.com/jsf/core" all working like supposed to be.
7 years ago
JSF
Hello,
I am trying to create bookmarkable URLs on my project with JSF 2.2. I have read documentation about viewParam`s, and at this point i just trying to get params passed to page by url (viewarticle.xhml?id=123123). I have create simple JSF page like this:

And backing bean:


After calling url server/viewarticle.xhtml?id=123 I got just blank page, I have googling all the morning about working examples and descriptions but still can't get it working, seems like i didn't understand something. What I am doing wrong?
Glassfish 4
NetBeans
Thanks in advance.
7 years ago
JSF

Volodymyr Levytskyi wrote:Hello!

Sorry, probably it is not needed to execute the whole table on event 'click' but only commandbutton
<f:ajax execute='@this' event='click' render="transactions"/>

Also h:commandButton should be inside h:form


Its not working for me, and yes it was inside form.

I have solve my problem by adding wrapper for datatable and re-render it. Something like this:

Thank You for your help
9 years ago
JSF
Try to check for broken links for css styles in output HTML from this jsf.
9 years ago
JSF

Volodymyr Levytskyi wrote:Hello!

You may find interesting to look at my post about f:ajax at https://coderanch.com/t/594176/JSF/java/dynamic-div-reset#2708812


Thanks but I have read this post before I post this one.

Volodymyr Levytskyi wrote:
Try this f:ajax
<f:ajax execute='transactions' event='click' render="transactions"/>


The same reaction. With event='click', its even didn't call my method.
9 years ago
JSF
Hello,
I have datatable with "delete" button in each row. When clicked, method should remove object from List and database, and after, I want to re-render datatable. After clicking "delete" all what I have expected working fine, except of re-rendering datatable. To see changes I need explicitly refresh page, so without Ajax its working perfectly.
JSF Table:

Bean method:

Im find a lot in Google same problems, but still no luck with fixing this, please point me whats wrong. Thanks in advance.
9 years ago
JSF