Jakim Rachev

+ Follow
since Sep 04, 2010
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jakim Rachev

Hello guys,

I have a big problem. I'm trying ti customize selectOneRadio as such I can group radiobuttons in a singel row of a table. Each cell must contain a radio button.
I found this tutorial http://www.javaworld.com/javaworld/jw-02-2007/jw-02-jsf.html?page=2#resources and have modified it a little because some of the methods are deprecated. I'm using JSF 1.2. How ever when I run my solution, I notice in the source code that the custom tag is not rendered and the radio buttons were not displayed.
My suspicious are, that I'm doing something wrong when declaring and setting my custom tag:
Here the steps that I have followed:

Add a component definition and renderer in faces-config.xml

Write the radio_taglib.tld file

Add the tld file reference in web.xml

Then in JSF response source code I'm geting this:

And the outcome page looks like this:

11 years ago
Yes it seems that the problem is in <s:link>. Just right now i tried with h:commandLink and everything was just fine.
Thanks Tim.
11 years ago

I've looked every where for that, and I just can't find a solution. I have a composition element which I want to include in various facelet pages, every each with a unique backBean but sharing same interface. So is there any way to pass only the backBean instance to this composition element from the client pages. I tried this method:

Composition Element comEl.xhtml

Client page page1.xhtml backBean=page1Bean

Actually disabled="#{bean.getCount()==0}" works ok, if the count is 0 the link gets disabled.
But action="#{bean.sayHello}" doesn't work.

Exception during request processing:
Caused by javax.el.PropertyNotFoundException with message: "Target Unreachable, identifier 'bean' resolved to null"

11 years ago
Yes I know that Java Script is client side script language, and i know its concepts. How ever it seems that I need to read some more info about JSF EL. Thanks Tim.
11 years ago

I have this problem. In a facelet composition I have declare some links that should certain action from a bean,
which bean I want to specify from another facelet which uses the composition. Here is my code.
The Composition paging.xhtml:

and the client page client.xhtml

It is strange because when there are no more pages the relevant links becomes disabled and and the images do change, but when I any of the links(which are not disabled of course) an exception rises:

Exception during request processing:
Caused by javax.el.PropertyNotFoundException with message: Target Unreachable, identifier 'bean' resolved to null

So why comes that my code works for the state of the links, but does not for the action invocation? And how should I fix it? Thanks in advance.
11 years ago
Hi Tim,

Thanks for the replay. I'm pretty new with JSF. I for the Java script EL that is what I'm trying to avoid. I don't want to use java script in my project. And for the styleClass property method i got stuck because there is not such event that rices whenever a link is disabled ( no onDisabled). But Actually I solve the problem very easy:

I don't know if this way is the right way, but for now it works.
11 years ago
Hello Friends,

I have the following situation, I need to change the background image (or src url of a <img> that is enclosed within s:link)of a s:link, when its property "Disabled" is true and vice versa. Is there a way to do it elegantly with JSF 1.2, without using a script language such as Java Script:
Here is a little snippet of my code:

So I want to change the images when switching between s:link disabled states.

Thank you in advanced.
11 years ago
Thanks guys. Tha was the problem.
11 years ago
He everyone.

From some time now I'm stuck with this exception:

javax.servlet.ServletException: Expected a child component type of UISelectItem/UISelectItems for component type javax.faces.SelectOne(selectCar). Found null.

root cause

java.lang.IllegalArgumentException: Expected a child component type of UISelectItem/UISelectItems for component type javax.faces.SelectOne(selectCar). Found null.

What I'm trying to do i is to populate a combobox with some items from a back been.
Here is my code.



faces-config fragment

Please help me with this problem. I have also debuged it, and I notices that the get method returns null, but the bean do initialize on every request.
11 years ago
Thanks everyone!

@Ilari Moilanen the prolem was that I reference the tamplate with the "src" property instead of the "template" property of the <ui:compositin>.
After I tryed out your proposition i found that mistake in my sample code. Now everything is fine and it is working as expected.

@Tim Holloway thank you for this information. I think it will come usefull to me.

Thank you guys
11 years ago
Hello All,

I have this problem: I want to create a composition template and to inclide a page content into a target page.
Here is the code of my template, page cantent that i want to be included and the target page:




As you can see the sample project is very simple.
However when I open BasicPage.jsf in a browser, I see the content enclosed in <h1> tags, which deviates from the expectations.
The content of footer.xhtml is not included and the header part is not displayed. Only the body part is renderd.
Can you please help me out?

11 years ago

I have some perhaps silly question, but please help me out.
I had to do some research about rich:modalPanel control.
I had many problems makeing a sample with it. Finaly I changed the way I was referencing the tag libraries.
I used to reference with xmlns and I switched to <%@ taglib and it worked.
So my question is what is the defference between these two ways?
11 years ago

I'm prettify new to this technology and I'm stuck with configuring environment for JSF.
I have eclipse helios 3.5, JBOSS 5.1 and mojarra-2.0.3. I have read different tutorial for set up jboss and jfs and use eclipse to develop JSF application but nothing helped.
IF some one have some step-by-step tutorial that will help me I'll be very happy.
Thank you in advance.
12 years ago