Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sanketh Iyer
Using liferay tags in server side response
March 25, 2013 10:54 PM
Answer

Sanketh Iyer

Rank: New Member

Posts: 11

Join Date: February 2, 2012

Recent Posts

Hi,

I have a requirement where I need to fetch MbMessages through ajax and then add them to the page.

So I am creating the entire DOM in ServeResource and then adding it via ajax.

The issue I am facing is while utilizing liferay tags like liferay-ui:ratings in my server side response.

Even if I take the code up from the source code for creating the html tags of liferay-ui:ratings, the functionality should work similar to directly using the tag in the jsp.

Now, I am able to display the ratings and the thumb image.
But, if I click on the thumb image nothing happens.i.e no rating is added or removed.
Do I need to add some javascript along with the html tags from the liferay source?
Hitoshi Ozawa
RE: Using liferay tags in server side response
March 23, 2013 7:51 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Even if I take the code up from the source code for creating the html tags of liferay-ui:ratings, the functionality would work similar to directly using the tag in the jsp
That is, it wont


Sorry, but your question is confusing. What doesn't work?
Sanketh Iyer
RE: Using liferay tags in server side response
March 25, 2013 10:56 PM
Answer

Sanketh Iyer

Rank: New Member

Posts: 11

Join Date: February 2, 2012

Recent Posts

Sorry Hitoshi, my post was not complete earlier.