I need to have "profile url" functionality in my jsf application, is there any way apart from filters I can achieve this? - jsf

I need to have "profile url" functionality in my jsf application, is there any way apart from filters I can achieve this?
For ex:
www.website.com/dan.thomas should take me to the Dan Thomas`s page
I can not use filter to achieve this.

I can not use filter to achieve this.
Then it stops here. There are no other ways. You might consider to reformulate the question to solve the concrete problem why you cannot use filters for this, at least, if it's actually a programming problem.

Related

Liferay DXP: Setting/Disabling User Registration fields

I chose to disable some of the fields used in Liferays' user-registration with the help of language.properties and portal-ext.properties which is working fine so far.
It seems that there is no option/field to disable or hide the 'Language' selector, so I figured I will need to write my own login-portlet or hook the existing one.
The latter is more preferrable to me, so I hooked create_account.jsp.
Where I would expect the language selector to be, there is only this tag which seems to be a composite component that I cannot configure to my needs:
<liferay-ui:user-name-fields />
Do I have to write my own taglib component to achieve this or is there an easier way?
I think the best solution here is to create your own registration portlet: it's very easy to develop and you can use just the fields you need. Any other solution is more complex and less maintainable.

Xpages, picklist

Just curious for creating a picklist is this still the best option http://www.notesin9.com/2011/05/24/notesin9-027-the-view-picker-custom-control or is there something better?
It's difficult to answer a "best option" question here. That control was very good - but it's fairly old right now and the developer has moved on. So it might work but I'm not sure I'd call anything that's not actively maintained the best option.
Rather then trying to make a generic all around custom control I personally think the best option is to build the picker that you need.
Also, that picker pre-dated Extension Library, which provided a Value Picker and Name Picker

How to use Sizzle CSS selector engine?

I don't know how to use Sizzle so how can i use it?
Please provide me some example code.
Thanks,
jakobaindreas11
P.S. I always do questions like these
Basically, all you need to know is this:
Sizzle("selector");
Sizzle supports almost all CSS3 selectors.

Rad grid custom filtering

How can I activate custom filtering for my radgrid?(I googled but I didn't get any proper response regarding this)
I have a property like AllowCustomSorting but I don't have any property regarding filtering.
Can any one provide the way how to implement custom filtering?
If possbile give me a sample page then I will understand.
Thanks in advance.
All you need to know about filtering:
http://www.telerik.com/help/aspnet-ajax/grid-basic-filtering.html
I usually do my filtering/sorting within my stored procedures as that brings huge speed benefits when working with larger tables.
I'm aware this is a fairly old question now but this link should help you:
Note that it has a sample project at the bottom of the page.
The property you are looking for is AllowFilteringByColumn="True"
This page has a sample using a dropdown and a custom filter.

Form validation in addition to YUI

I'm in the process of adding some much needed client side form validation to a website I'm working on. We're currently using YUI. YUI doesn't have any form validation built in as I can see(prove me wrong).
I googled it
http://code.google.com/p/yui-form-validator/
It's not important that it's a YUI-extension as long as it plays along with YUI in a civilized manner.
What should I go for? Anyone out there with experience and an opinion?
There's a module in the gallery: http://yuilibrary.com/gallery/show/form
I haven't used it, but it looks pretty good to me.
Looks like we'll go for http://validatious.org/
Lightweight and standalone. Will not interfere with YUI.

Resources