SelectOneRadio in datatable without javascript

Hi,
As per my business requirement i need to implement selectoneradio in datatable without using javascript.
I tried sloving this by using selectOneRow provided by sandbox.
<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
<h:column>
<f:facet name="header">
     <h:outputText value="Select" />
</f:facet>
     <s:selectOneRow groupName="selection" d="select" value="" immediate="true"
     valueChangeListener="#{SourceInputController.selectSourceInputRequest}" />
</h:column>
I got the following error.
org.apache.jasper.JasperException: The absolute uri: http://myfaces.apache.org/sandbox cannot be resolved in either web.xml or the jar files deployed with this application
     org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
     org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
     org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
     org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
     org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147)
     org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
     org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
     org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
     org.apache.jasper.compiler.Parser.parse(Parser.java:126)
     org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
     org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
     org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
     com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
     com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
     com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
     com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
     org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
     org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.4 logs.
I got a start up error when i tried placing in tomahawk-sandbox-1.1.4-SNAPSHOT.jar file.
It's appreciated if you provide me the link as to where the jar file needs to downloaded if i need any.
Thanks in advance for your help.
Thank you,
Regards,
Kalpana

I referred the following link.
http://www.irian.at/myfaces-sandbox/selectOneRow.jsp.source.
Open this link and search for keyword "s:selectOneRow".

Similar Messages

  • How to embed Flash without Javascript?

    How to embed Flash without Javascript? Other way to ask this: if user desactivates Javascript, sill Flash content still be visible?
    Thanks for helping.

    Hi
    This article may be of interest (shows with and without javascript methods), - http://perishablepress.com/press/2007/04/17/embed-flash-or-die-trying/.
    PZ

  • Populate combo in jsp without javascript?

    hai all,
    can u tell me how can i populate combo in jsp, is it possible without javascript?

    Quite easily, in pseudo code <%
         List myList = (List)session.getAttribute("theList");
    %><select name="myOptions"><%     
         for (items in the list)
              %><option value="<%= item.value %>"><%= item.label %></option><%
    %>
         </select>

  • How to Format DataTable Column after load Datatable without extra loop ??

    How to Format Column after load Datatable without extra loop ??
    I dont want to do extra logic which can cause performance thing.
    I have datatable which get fill from Dataset after database query, now i need to format column as decimal but without extra logic.
    I was thinking to create clone and than Import row loop but it ll kill performance, its WPF application.
    Thanks
    Jumpingboy

    You cannot do any custom things at all without doing some "extra logic". Formatting a number as decimal is certainly not a performance killer in any way whatsoever though.
    If you are displaying the contents of the DataTable in a DataGrid you could specify a StringFormat in the XAML:
    <DataGrid x:Name="dg1" AutoGenerateColumns="False">
    <DataGrid.Columns>
    <DataGridTextColumn Header="Number" Binding="{Binding num, StringFormat=N2}"/>
    </DataGrid.Columns>
    </DataGrid>
    Or if you are using auto-generated columns you could handle the AutoGeneratingColumn event:
    public MainWindow() {
    InitializeComponent();
    DataTable table1 = new DataTable();
    table1.Columns.Add(new DataColumn("num")
    DataType = typeof(decimal)
    table1.Rows.Add(1.444444444444);
    table1.Rows.Add(7.444444444444);
    dg1.ItemsSource = table1.DefaultView;
    dg1.AutoGeneratingColumn += dg1_AutoGeneratingColumn;
    void dg1_AutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e) {
    if (e.PropertyName == "num") {
    DataGridTextColumn column = e.Column as DataGridTextColumn;
    column.Binding.StringFormat = "N2";
    <DataGrid x:Name="dg1" />
     Please remember to mark helpful posts as answer and/or helpful.

  • Displaying a wait page without javascript/ meta refresh

    I am using JSPs with struts 1. I wanna show a wait page after submitting the form until it process.
    But in my case i wanna do it without javascripts or meta refreshes. any idea?

    ruwanin84 wrote:
    As far as I know, meta -refresh is not that much recommended.Please elaborate and prove. This makes really no sense to me.
    any way that's my last option. do you have any idea of checking the token?That's just a toggle in the request/session on which the server side code can intercept. This still require a request being invoked by the client.

  • Hide item without javascript

    i have form and one item that has it's defaut value.
    i try to hide item in ordinary way and wirh condition too.. but after insert action it doen't save any value
    i don't want to use javascript to hide it. so..
    is there any way to hide item without javascript, so it won't lose its value after insert action?

    i use condition to hide item..
    it looks like this:
    Value of Item in expresion1 = expresion2
    expresion1 is - 3
    expresion2 - 1

  • Position to first field in a form WITHOUT JAVASCRIPT

    DOes anyone know how to position to a field in a form without using javascript OR is there code that can be used in JSP to tell whether the browser is javascript enabled and within that block, use javascript to position to the field.

    Unfortunately, the only way I know how to do it is using JavaScript and the onLoad event. You can determine if a browser is JavaScript compatible simpley by looking in the request header for the type and version of the browser, and you know which browsers support javascript. But you'll need to use javascript to figure out if they actually have javascript turned on.
    -Derek

  • Page menubar with/without javascript

    Hello All,
    I have a basic question.  I am designing a website, where the same spry menubar will be at the top of every page.  And each page of the site will have that same menu.  Now, as time goes, that menubar will change here, and there.  I wanted to know, is there any way I can create this setup without having to copy/paste all the menubar info on every page.  This wouldn't be a problem if it was a one time deal, but as changes are made to the menubar, EVERY page will have to be updated.  Is there a way around this, not using javascript (of course I can make a function to write directly to the page and call that on each individual page)?  Please let me know.  If this question is unclear, please ask me to clarify whatever is unclear. 
    Thanks in advance!
    -R

    Efficiently setting up and maintaining repetitive sitewide content (headers, footers, navbars, sidebars, banners etc) is an issue faced by all web designers.
    Some use Dreamweaver Templates and Library items.
    However, the best solution by far is to set up repetitive content as a Server Side Include (SSI), as Nancy mentions.
    SSIs are a generic web technology (not a Dreamweaver feature) implemented slightly differently on different web servers. But the end result is the same.
    Converting a Spry Menu Bar to a Server-Side Include
    http://foundationphp.com/tutorials/sprymenu/ssi.php
    Once you've added the Include code (single line) to each page of your website, you can forget about updating each individual page. All you then update is a tiny file containing a HTML fragment and upload that file to your server. For example, a Spry menu bar implemented as an SSI is reduced to a simple unordered HTML list.
    Note that SSIs can be used for any repetitive page elements and you can set up as many SSIs per page as you like (5 or 6 per page is not uncommon).
    Note: There is a tiny performance hit on the server whenever an Include is called in the page code. Each Include in the code asks the server to perform a task, such as finding another file, before sending the page to the browser but I've never found Includes to adversely affect any pages download times because I use so few per page.

  • Canvas on web page without javascript

    Can anybody tell me that how i can construct canvas on web page without using javascript. Please guide me for the process i should follow
    Edited by: 864869 on Jun 10, 2011 8:49 AM

    You cannot. You could do so in an applet though, but then you're not doing it "on the webpage".

  • How to create a disabled button without javascript

    Hi,
    I have to create a disabled button in apex 4, without using javascript due to some security reasons. I have edited the button template to give a disabled look, but still an action eg. submit is associated with it. I dont want any action to be performed on this button.
    Please suggest how can i achieve this or any alternative approach.
    Regards,
    Shweta

    Shweta wrote:
    Hi,
    I have to create a disabled button in apex 4You ALWAYS need to supply the following information with the initial question:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s)/versions(s) used
    <li>Theme
    <li>Templates
    <li>Region type
    without using javascript due to some security reasons.Why? What "security reasons"?
    I have edited the button template to give a disabled look, but still an action eg. submit is associated with it. I dont want any action to be performed on this button.
    Please suggest how can i achieve this or any alternative approach.If no action can be performed on the button, why is it there? Don't render it all.

  • Getting dynamic id of a component bound to a datatable, using javascript

    Hi....
    I am using Sun Studio Creator to develop a small application.
    I have a problem in getting the dynamic id of a component in Javascript, which is bound to a column of a datatable.
    In the jsp page, I have a datatable and it is bound to a list in the backing bean.The datatable has 2 columns.One column is a checkbox and the other column is a dropdownlist. The values of the checkbox and the dropdown are taken from the list for a button click.The list data are taken from database.Now, I want to enable/disable the dropdownlist according to the check box value(the user checks/unchecks) and I want to do it on the change/onclick of the checkbox.That is, I want to get the dynamic id of the check box in a Javascript. I tried using the j4j idProxy as well. But that also failed to help me.
    In Javascript,
    function changeCheckboxValue() {
    var i = document.getElementById('checkboxStatus').title;
    alert(i);
    This alert message is "undefined".
    In jsp,
    <h:column binding="#{AssignVals.column1}" id="column1">
    <h:selectBooleanCheckbox binding="#{AssignVals.checkbox1}" id="checkbox1"
    onchange="changeCheckboxValue()" value="#{currentRow['status']}">
    <j4j:idProxy id="checkboxStatus" />
    </h:selectBooleanCheckbox>
    </h:column>
    How can I get the dynamic id of the check box in the javascript?
    I don't want to do this in the backing bean, as it causes more server trips.
    Thanks & regards,
    Menaka.

    What about using this in your js script?
    onchange="changeCheckboxValue(this)"
    Names generated by JSF implementation have the format:
    <form>:<component>
    For data table is like:
    <form>:<datatable>:<row #>:<component>
    For example:
    form1:dataTable1:1:outputText1
    You could parse the name of "this" and found what row and form the other component name, for example:
    name = "form1:dataTable1:" + row + outputText1;
    this.form[name].text = "hello";
    Regards.

  • Ajax without JavaScript - Is it really possible?

    I read your article Ajax Without J . Wondering Is it really possible.
    How about if i have following situations
    1) I wanna display Alert Message whenever users click on Delete button i.e. confirmDelete function using JavaScript
    2)Clearing the form fields on click of Reset button
    This can be easily accomplished using JavaScript functions. Do we have something similar in Ajax4Jsf
    Also is it possible to conditionally render buttons using Ajax4Jsf. For example whenever user selects "New" from h:selectOneMenu i dont wanna display Delete button. I am using Ajax4Jsf here with reRender attribute on h:commandButton it doesnt work
    Regards
    Bansi

    duplicate for http://forum.exadel.com/viewtopic.php?t=5943

  • IWeb '08 without Javascript?

    Searched the iWeb Help for "Javascript" and get "not found." Searched this forum and didn't get much of any use.
    I want, I require, no client side scripting on my website. There is no value to be added to my site with active scripting. Is there theme in iWeb without active scripting? I found not even the blank page template/theme could produce a pure HTTP or XML site.

    I admit to under-utilizing BBEdit. That I rarely make use of its tools for inserting HTML code. Rarely make use of its cvs integration as I usually jump into Terminal to cvs commit and ftp the changes.
    The syntax check inside BBEdit is my most used HTML feature. Have also made use of the built-in Tidy.
    Have used BBEdit for many years, before it started focusing on HTML. Still use it a lot for writing embedded (microcontroller) C. Came in handy last week when I wanted to sort a section of a parts list by the 3rd column.
    Used Qued/M before BBEdit. Rather liked Nisus Writer, but that program didn't survive in its original form from MacOS 9 to X. I rather liked the original's "ruler as a style", particularly the ruler icon off to the left side indicating where ruler/style changes were invoked. And best of all the ability to select that ruler icon and copy/paste/delete as needed.
    At one time the least expensive way to get BBEdit was to download and register the free TextWrangler, then upgrade. I don't see that path on the website, it might still exist inside TextWrangler.

  • SelectOneRadio inside datatable?

    How do I put a <h:selectOneRadio> inside a datatable> Ie if I wanted to rank names from 1 to 3?
    <h:dataTable value="#{bean.myNames}"
    var="n"
    >
    <h:column>
    <f:facet name="header">
    <h:outputText value="Function Name"/>
    </f:facet>
    <h:outputText value="#{n.Name}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Rank"/>
    </f:facet>
    <h:selectOneRadio binding="#{bean.selectOneRank}" >
    <f:selectItem itemValue="1" />
    <f:selectItem itemValue="2" />
    <f:selectItem itemValue="3" />
    </h:selectOneRadio>
    </h:column>
    </h:dataTable>
    How do I in the bean say that name y got rank z?

    Worked thanks...
    I wish you could iterate though two items at one time in a data table... like this
    List temp;
    List temp2;
    for (int i=0; i<temp.size(); i++){
    temp.get(i);
    if (temp2.get(i)) temp2.get(i);
    But in a datatable....
    I also found this
    http://www.javaworld.com/javaworld/jw-02-2007/jw-02-jsf.html?page=2
    That would work better IMHO
    Thanks for your help.

  • Dynamic DataTable without validation of the rest of the form

    I'm having a bit of trouble implementing a piece of functionality with JSF and I'm hoping someone here will have some insight into how to accomplish this.
    I have a quite large form, with some fields requiring quite complex and expensive (both performance and actual money) validation (e.g. calling external web services, etc.). For the sake of the explanation, let's say the user enters details about himself, such as name, social security number, address, etc. Along with his details, he's to enter a limited subset of the details for each of his children (say name and social security number). We do not know at design time how many children the user has (obviously), so this part of the form has to be dynamically generated. Validation is performed on these children fields as well, so the user needs to be able to edit and remove children from the form.
    Prior to JSF (straight JSP), I used DHTML and a naming scheme for these records with a custom setters in the backing beans.
    What I have tried with JSF is to have a DataTable backed by a List. This table contains a single "Add Child" button which adds a new empty row to the table. There is also a "Remove" button for each row.
    This works just great as long as I allow all other fields in the form to validate each time the user clicks the button. However, as I stated before, these validations are very very expensive (transaction based costs) . Additionally, I do not want to force the user to fill in all the other required fields (close to 40) before he can go on with the children.
    Now, setting immediate="true" on the commandButton elements solves the problem of the other form fields validating. However, now the Children in the DataTable are never set because the update model values phase is never invoked, leaving me with empty input fields. I really do not care in this instance whether the data for the Children is valid or not, I just need to get them into the form.
    I can think of at least three possible solutions:
    1) Split up the form into several pages, like a wizard. However, the customer has rejected this option.
    2) Somehow simplify the Children section by providing a single entry and a read-only table. This way I can use a simpler read-only table and I can extract the values from the request parameters directly. However, this complicated the editing of previously entered Children. To make things worse, the order of the children has to remain intact.
    3) Create a custom HtmlInputText component that sets the values regardless of whether immediate="true" or "false".
    It is this last option that I do not know how to do. Which methods would I need to override in order to get the values to be set in my bounded Children object regardless of the immediate flag?
    And of course, if anybody has any other design suggestions I'm open to them!
    Thanks in advance!
    /Kris

    nboudani , let me answer your question first. The page does have a Submit button. It also has "Add Child" and "Remove Child", and some others as well. The Submit button has immediate="false". I also need form validation for interdependent form fileds (e.g. either Passport number or social security number are required), so I'm using the "hidden input field at the bottom of the form trick". This all works well enough.
    OK, I got partway there. jaguar2010's mention of valueChangeListener made me investigate that further. So what I did was twofold. Set the immediate attribute to true for the inputText elements in question (for the Children data) as well as for the commandButton (as before). Also, add a valueChangeListener for each of the Children which simply calls updateModel.
    So, view code:
    <h:inputText id="cName"
                           valueChangeListener="#{testBean.procCNameValueChanged}"
                           value="#{child.name}"
                           required="true"
                           immediate="true"/>
    <h:inputText id="cSS"
                           valueChangeListener="#{testBean.processCSSValueChanged}"
                           value="#{child.ss}"
                           validator="#{testBean.validateCSS}"
                           immediate="true"/>
    <h:commandButton action="#{testBean.addChild}" immediate="true" value="Add Child"/>
    ...bean code:
    public void procCNameValueChanged(ValueChangeEvent event) {
        HtmlInputText sender = (HtmlInputText) event.getComponent();
        sender.updateModel(FacesContext.getCurrentInstance());
    }So, that does take care of the problem with the model not updating. However, there are a bunch of other problems still left to be resolved. For instance, as you'll notice, there is a validator attached to one of the inputs. If this validation fails, the invalid text is not put back in the input field. I can't temember now, but I think that is because the valueChangeListener is not called in that case, so the model is not updated. Sigh...
    Another problem is that for each row in the data model's table, there is a "Remove" button (not shown in above code) to enable the user to remove an entry from the list of children. Well, because JSF process events in the order of their appearance in the view code, an exeption is thrown if the removed row is not the last one, and the last row has not been "saved" yet. That is, the valueChangeListener has not been called on the last row. What happens is that first the action method for the remove button is called, then the valueChangeListener for the last row is called. But by the time the valueChangeListener event is fired, the last row has chaned its index (because the remove action method was called first) and apparently this fact has escaped JSF so it throws an exception (property not found or something).
    I'm starting to wonder if JSF is the wrong technology for complex forms. Just seems to want to do too much for me, assuming I have a simple form.

Maybe you are looking for

  • HT204053 Can multiple apple ID users share the iPad easily?

    Hi, just purchased the new IPad for me and my partner to share, we both have apple ID's and assumed we could easily access emails etc. Does anyone know how we can both get equal share of the device? Cannot find a way to swap between ID's except in mu

  • XML schemas in subfolders problem

    We have a large number of XML schemas and have partitioned them into different folders. This means that imported schemas are often located in a relative directory e.g.      <import namespace="http://www.xyz.com/schema/Staff" schemaLocation="../../Sta

  • Korean text in photo book print (Aperture)

    Hi, I want to know if Korean language text will be printed on my photobook created by Aperture. To make this post helpful for others, is there any language not supported by Aperture/iPhoto? FYI, I'm ordering from the United States. Thank you.

  • [SOLVED] Error compiling libdbusmenu 0.2.7-1

    I'm trying to install indicator-applet-bzr (that nice GNOME applet which lets you change pidgin status, login/shutdown etc from the Ayatana project) but the install fails with ==> ERROR: Makepkg was unable to build libdbusmenu." Here is output after

  • Rotate video in Lightroom?

    I have taken a video with my camera in a vertical or portrait direction.  When I import it into Lightroom it appears horizontal or landscape.  How can I rotate the video images.