Jsp 2.0: trouble making checked attribute for radio/checkbox

Hi, there,
I planned to use jsp 2.0 and started the new project with jspx file, instead of jsp. My target server is WebSphere 6.0. However, I have trouble to create the CHECKED attribute for radio/checkbox.
This code:
<input type="radio" name='xxx' checked="${isTrue?"checked":"false"}"/>
will not work with mozilla/firefox.
if I do it this way:
<input type="radio name='xxx' <%=isTrue?"checked":""%>/>
This is not compiling in WebSphere, since this jspx file itself is now not well-formed xml.
Any suggestions? Thanks!
Ben.

I made a little improvement, but still have some questions...
MyForm.jspf:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib prefix="tmpl" tagdir="/WEB-INF/tags" %>
<tmpl:date bean="ResidentAttentionForm" property="date" />
date.tag:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ attribute name="bean" %>
<%@ attribute name="property" %>
<c:set var="bean" value="${bean}" scope="request"/>
<jsp:scriptlet>
javax.faces.context.FacesContext.getCurrentInstance().getApplication().getVariableResolver().resolveVariable(javax.faces.context.FacesContext.getCurrentInstance(), (String)request.getAttribute("bean"));
</jsp:scriptlet>
<c:set var="form" value="${sessionScope[bean]}" scope="session"/>
<c:set var="property" value="${property}" scope="session"/>
<f:subview id="time">
<h:inputText id="date" value="#{form[property]}">
<f:convertDateTime pattern="dd/MM/yyyy" />
</h:inputText>
The problem here:
1. how can I access from JSF EL to the tag attribute without passing it to the request??? (I've seen the question in the forum, but not the answer...)
2. Is there a way to initialize a bean with dynamic name (<c: set var="${name}"?
3. When we will have jsf 1.2 done? ;-) I know they said "with J2EE5", but it also has been said "J2EE5 - summer 2005" and now everyone is talking about 2006 (?). Why can't they make jsr for jsp 2.1 and jsf 1.2 before J2EE5?.
Sincerely,
D.

Similar Messages

  • How to get the checked attribute of a checkbox item from a PL/SQL process?

    Hello,
    I have a simple static form with one checkbox linked to a LOV containing one single value. I use this checkbox just to enable/disable other fields via Javascript. I am interested to fetch the "checked" attribute of this checkbox (and not the value of the checkbox) from an After Submit PL/Sql page process, so that I can process only the enabled fields.
    I can already imagine a workaround where we may store via Javascript the checked attribute of this checkbox in an hidden page item and then getting it from there, but I would really like to avoid it, as it would add unnecessary complexity and I would have to add more code to keep the hidden item always in synch with the checkbox status.
    Is there something like the V('page_item') PL/Sql function that can get a different attribute from a page item (like the checked one from a checkbox) and not only its value?
    I searched the forum for an answer to my question, but I couldn't find anything related.
    Thanks a lot,
    Paolo

    Paolo,
    HTML checkboxes are POSTed only if they are checked. So if your "checked" value is 'Y', for example, then your after-submit process can check if the item's value is 'Y' or not. Of course, you must be careful to set that item to null (or some non-checked value) in session state during page rendering so that previous values are not retained.
    Scott

  • Trouble setting AD attribute for UserAccountControl

    I am trying to set UserAccount Control value to 262658 so that Account is disabled and Smart card is required are checked.
    But for some reason the user is getting created the useraccount control value is not updating.
    This is simply what I am doing
    <set name='user.accounts[AD].userAccountControl '>
    <Integer>262658</Integer>
    </set>
    Just a background on this. I am creating a user with all the other attributes updated and then checkin the user view then set user as disabled. After that is done I am doing a checkout and then setting the accountControl Value as above and then checkin the view.
    Please let me know if you have any idea why I can't set the accountcontrol value.
    Thanks.

    You have to use the Postscript name of the font. Create a text layer with
    the font you want to use. Select the text layer and run this script:
    docRef = activeDocument;
    if (docRef.activeLayer.kind == LayerKind.TEXT)
    alert("Font name is " + app.fonts[docRef.activeLayer.textItem.font].name +
    "\n" +
    "Postscript name is "+
    app.fonts[docRef.activeLayer.textItem.font].postScriptName + "\n" +
    "Style is " + app.fonts[docRef.activeLayer.textItem.font].style+ "\n"
    +
    "Anti-alias is " + docRef.activeLayer.textItem.antiAliasMethod);
    else
    {alert("Active layer is not a text layer");
    Larry

  • How to check the default checked  value for radio button on jsp for struts

    Hello , I just want to check the default checked value in JSP for a radio button, how can i do that?
    <html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
    <html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>

    you can set the default value for property ( which you want to default selected when the form is first loaded) in reset method of the form.
    <html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
    <html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>
    In the above case you can write the code as follows in the perticular form of this jsp.
    public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
         sale = "permanent";
    This will show the first check box default selected when the first time the page is loaded.

  • Trouble making path work for 'javac' is not recognized as an intern...

    Hi -
    I am trying to compile my HelloApp.java program and I get this message: 'javac' is not recognized as an internal or external command, operable program or batch file
    I know to go into the system and change my Environment Variable, but I'm not sure what to change it to. Right now I have it as: ...ger\;C:\foo\bar\> C:\java\samples\bin\javac Filename.java
    I've just installed java_app_platform_sdk-5_01-windows.
    Will you please give me step-by-step instructions to make my compiler work?
    Thank you.

    Its already solved: i installed with de windows installer (jdk-1_5_0_10-windows-i586-p.exe) jdk and jre in the same folder. With another installer (jdk-6-rc-windows-i586), in separate folders: no problem. Thank you.

  • Making data accessible for a JSP

    What is the preferable way of making data accessible for a JSP from a Struts action?
    I currently store it in the session object. But this seems unnecessary since the only jsp that has to have access to the data is the one defined in by Struts' forward mapping for the action (whereas the session stored object scopes over all jsp's).
    Thanks,
    Seb

    If the info is only required for one page, then a request attribute instead of a session attribute would seem appropriate.
    Either that or load the data into an action form to display.

  • Mandatory check failed for attribute process type of business object

    Hi Guys,
       Im facing an error with the Mandatory check failed for the attribute process type of the business object activity.
    I have the subscription business transaction customizing subscription assigned
    and the transaction types are visible when I create the activity but when I assign the transaction type then the following error is seen

    Hi,
    did you also synchronize the adapter object CRM_DNL_PROCTYP?
    Is the CDB table CDBC_PROC_TYPE properly filled in CDB respectively in your local DB?
    Regards,
    Wolfhard

  • Struts - Firfefox messages: No input attribute for mapping path /editNxtMod

    Hi!
    I'd like to create an admin application which is based upon a simple database table. The list shows already, but the detail of selected record doesn't. When I click to a record, the Firefox writes "No input attribute for mapping path /editNxtModuls". What does it mean? Maybe bad configuration files?
    Please help me!
    Thank Yoy!
    Here my code:
    <struts-config>
         <data-sources />
         <form-beans>
              <form-bean name="NxtModulsForm" type="forms.NxtModulsForm" />
         </form-beans>
         <global-exceptions />
         <global-forwards>
              <forward name="error" path="/error.jsp" />
         </global-forwards>
         <action-mappings>
              <action input="/index.jsp" path="/listNxtModuls"
                   type="actions.ListNxtModulsAction">
                   <forward name="list" path="/NxtModuls/list.jsp" />
              </action>
              <action name="NxtModulsForm"
                   path="/editNxtModuls" scope="request"
                   type="actions.EditNxtModulsAction" validate="true">
                   <forward name="edit" path="/NxtModuls/edit.jsp" />
              </action>
              <action path="/saveNxtModuls"
                   type="actions.SaveNxtModulsAction" />
              <action input="/NxtModuls/edit.jsp" name="NxtModulsForm"
                   path="/processNxtModuls">
                   <forward name="save" path="/saveNxtModuls.do" />
                   <forward name="cancel" path="/cancelNxtModuls.do" />
              </action>
              <action path="/cancelNxtModuls"
                   type="actions.CancelNxtModulsAction" />
         </action-mappings>
         <controller />
         <message-resources parameter="resources.application" />
    </struts-config>
    *****************list.jsp*************
    <td>                         <a href="editNxtModuls.do?modul_id=<bean:write name="nxtmoduls" property="modul_id"/>">
    <bean:write name="nxtmoduls" property="modul_id"/>
    <a/>
    </td>
    *****************edit.jsp*************
    <html>
         <h2>Edit</h2>
         <html:errors/>
         <body>
              <html:form action="processNxtModuls.do">
                   <table border="1">
                        <tr>
                             <td>Modul name: </td>
                             <td><html:text property="modul_name" size="20" maxlength="20" /></td>
                        </tr>
                        <tr>
                             <td>Synonym name: </td>
                             <td><html:text property="synonym_name" size="20" maxlength="20" /></td>
                        </tr>
                   </table>
                   <html:submit value="Save" onclick="go('saveNxtModuls')"/>
                   <html:submit value="Cancel" onclick="go('cancelNxtModuls')"/>
              </html:form>
         </body>
    </html>
    *********************action******************
    public class EditNxtModulsAction extends CommonAction {
         public EditNxtModulsAction() {
         @Override
         public ActionForward commonExecute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response) throws Exception {
              NxtModulsForm myForm = (NxtModulsForm)form;
              try {
                   if (request.getParameter("modul_id") == null) {
                        throw new OwnException("The modul_id parameter was not returned!");
                   Long ModulId;
                   try {
                        ModulId = new Long(request.getParameter("modul_id"));
                   catch(Exception e) {
                        throw new OwnException("The modul_id parameter is not a number!");
                   NxtModulsBean OneRecord = new NxtModulsBean();
                   OneRecord = myManager.getRecord(ModulId);
                   myForm.setModul_name(OneRecord.getModul_name());
                   myForm.setSynonym_name(OneRecord.getSynonym_name());
              catch(OwnException e) {
                   System.out.println(e);
                   myErrors.add("label",new ActionError("error.get_record_failed"));
                   saveErrors(request, myErrors);
                   mapping.findForward("error");
              return mapping.findForward("edit");
    }

    The config file looks ok to me.
    The Action looks like you aren't taking full advantage of Struts.
    You shouldn't have to call request.getParameter() - you should define an action form which picks up the parameters, and does the validations/conversions for you.
    Maybe try this:
    <html:link action="/editNxtModuls" paramId="modul_id" paramName="nxtmoduls" paramProperty="modul_id" /><bean:write name="nxtmoduls" property="modul_id"/>
    </html:link>Edit: Reads error message
    No input attribute for mapping path /editNxtModuls
    This means that the form validation for this action failed, and it is attempting to return control to the sending page so that you can fix the error.
    Check the forms.NxtModulsForm validate() method to see if validation would pass/fail.
    The fix would be to put an "input" attribute into the action
    <action name="NxtModulsForm"
    path="/editNxtModuls"
    scope="request"
    type="actions.EditNxtModulsAction"
    validate="true"
    input = "list.jsp">
    <forward name="edit" path="/NxtModuls/edit.jsp" />
    </action>
    Cheers,
    evnafets

  • MM06E005 - how to set screen attributes for custom fields?

    Hi all,
    I have implemented enhancement MM06E005. I have added my custom fields to CI_EKPODB.  I have created and activated all the dynpros.  I modified subscreen 0111 (items) to contain my new custom fields.  I have activated the function exits (016,017,018) for the item screens.  I am able to save data using the new custom fields on subscreen 0111.
    What I am having trouble with is modifying the screen attributes for the new custom fields that I placed on subscreen 0111. I know it should be in exit 016(PBO) and I need to check the action type.  I tried a "loop at screen" but my fields were not there. 
    How do I modify the screen attributes?  Also, can I change the "Tab" text from "Customer Data" to be something else?
    Any help would be appreciated.
    Thanks, Mark

    Hi,
      In the PBO of the screen 0111, create a module. And in that module you can do LOOP AT SCREEN..where the screen elements will be available..
    Thanks
    Naren

  • Post install checks failed for DBC file - Oracle App11.5.10.2 Linux  5.3

    Hi everybody,
    I tried Installing Oracle E-Business Suite 11.5.10.2 on Red Hat Enterprise Linux Server release 5.3
    The Post install checks failed for DBC file, HTTP, JSP and PHP. Apparently the DBC hadn’t been created. I had verified the log file, while executing adgendbc.sh, it throwing below error.
    Generating /jith/d01/oracle/appl/visappl/fnd/11.5.0/secure/prithvi.bangalore.bedford.local_vis.dbc
    DBC generation failed with exit code 127
    Generating /jith/d01/oracle/appl/visappl/fnd/11.5.0/secure/prithvi_vis.dbc
    DBC generation failed with exit code 127
    Updating Server Security Authentication
    Updating Server Security Authentication failed with exit code 127
    adgendbc.sh exiting with status 127
    ERRORCODE = 127 ERRORCODE_END
    .end std out.
    touch: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
    sqlplus: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
    mkdir: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    sed: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /jith/d01/oracle/appl/viscomn/util/java/1.4/j2sdk1.4.2_04/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /jith/d01/oracle/appl/viscomn/util/java/1.4/j2sdk1.4.2_04/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /jith/d01/oracle/appl/viscomn/util/java/1.4/j2sdk1.4.2_04/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /jith/d01/oracle/appl/viscomn/util/java/1.4/j2sdk1.4.2_04/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    /jith/d01/oracle/appl/viscomn/util/java/1.4/j2sdk1.4.2_04/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    .end err out.
    Thanks in advance.
    sreejith

    Welcome to the forums !
    Pl post EBS related question in the EBS forums at http://forums.oracle.com/forums/category.jspa?categoryID=3
    HTH
    Srini

  • Error while querying workflow message attributes for task

    Can some one please help me with this error?
    I get this error when I submit a task in worklist app. I have figure out that it is causing due to one payload in the table in the task. If remove that payload I am able to submit the task.
    Error while querying workflow message attributes for task a99d1cf3-5e91-4c4a-8660-aeae91bfbec0 with version 5.
    Check the underlying exception and the database connection information. If the error persists, contact Oracle Support Services.
    oracle.jbo.JboException: Error while querying workflow message attributes.
    Error while querying workflow message attributes for task a99d1cf3-5e91-4c4a-8660-aeae91bfbec0 with version 5.
    Check the underlying exception and the database connection information. If the error persists, contact Oracle Support Services.
         at oracle.bpel.services.datacontrol.XSDDataControl.invokeOperation(XSDDataControl.java:460)
         at oracle.adf.model.bean.DCBeanDataControl.invokeMethod(DCBeanDataControl.java:430)
         at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:261)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1635)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2144)
         at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:467)
         at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:307)

    Can anybody help me on this?
    I did some google but I get this only which is not much helpful.
    http://download.oracle.com/docs/cd/E14571_01/core.1111/e10113/chapter_bpm_messages.htm

  • The attributes for user could not be determined --

    Hi,
    Our is extended classic scenario:srm5.0 & ECC6.0
    we are getting the following error in the org plan:
    "The attributes for user could not be determined "
    The error is occuring , when we log into the web browser.
    we also have a error in the org plan, under the user at the check tab,"No attribute found for scenario BBP".
    when we run the BBP_ATTR_CHECK & BBP_BP_OM_Integrate, we have no errors...
    Thanks in advance,
    RK.

    Hi All,
    Thanks for your support...
    I check the T-code:BBP_ATTR_CHECK & BBP_BP_OM_INTEGRATE.
    I also checked the attributes for the CP are ok,still i had the error appearing in the WEB.
    The solution:
    The CP has been deleted from the org plan.
    Once again,we generated the users from USERS_GEN and assign CP to the org plan again at the same.Now the Attributes error is gone.... and the issue is resolved.
    Thanks and Regards,
    RK.

  • Error - The attributes for user could not be determined

    When I login as a Buyer (with role ZTSX_EC_BBP_PURCHASER - copy of SAP_EC_BBP_PURCHASER), I get the foll. error while trying to Process Purchase Orders:
    The attributes for user could not be determined
    It does not happen on other transactions (like Sourcing or Issue POs).
    The buyer is in the org. plan and I have checked the attributes and they seem ok.
    What could be the issue ???
    Thanks
    -Bakulesh

    Hi
    <b>Please go through these links -></b>
    The attributes for user could not be determined --
    'Error in writing attributes' when using function tab
    Company code for system missing in user attributes
    BBP_POC not working in SRM 5.0
    Re: urgent: regarding ATTRIBUTES
    Regards
    - Atul

  • Goods Movement Not allowed(XWAOK) check box - for SRM Reservations.

    Dear Experts,
    We are working on Extended Clasissc sceanrio however certain materails we are creating reservation switching from ECS to Classic Scenario. System is Creating Reservation successfully in backend but Goods movement reservation allowed (FIELD XWAOK) check box not checked only for SRM Reservations
    Please note that ECC reservations checking this checkbox automatically based on Configuration. Is there any setting we have to do in SRM to pass the check box value to ECC? or How Can i check what data is passing from SRM to ECC......
    Thanks
    Ravi

    Dear Ravi,
    Could you please check if you have added the value '201' against the attribute movement type (forgot the attribute name) for the purchasing group or user group who created the shopping cart in SAP SRM. Once you have added the attribute, the problem should be resolved.
    Thanks and regards,
    Ranjan

  • An error occured while creating the original attribute for message no26 296

    Hi All,
              I am new to DMS , we are trying to store PM documents on content server , created a storage category and while assigning files to storage category then on saving the document i get the below error :
    An error occured while creating the original attribute for
    Message no. 26 296
    Diagnosis
    An error occured while creating an original in the Knowledge Provider.
    System Response
    The original could not be created.
    Procedure
    Contact the systems administrator and check the log file (transaction Evaluate application log, object SDOK).
    Please let me know what configs i am missing ...
    Thanks in advance
    regrds
    pushpa

    Hi Pushpa,
    Which enhancement package are you on currently? This is observed in cases where originals in DIR's are invisible and sometimes error message 26296 occurs in transaction CV01n. Hence,please check your entries in the table SDOKPROP to avoid such a problem in your system.
    Further,suggest you explore if the below resolutions can be adopted in your case.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=10321987
    http://wiki.sdn.sap.com/wiki/display/PLM/OriginalsinvisibleafterEHP3or+EHP4
    Regards,
    Pradeepkumar haragoldavar

Maybe you are looking for

  • Need help in FR Reports Migration which are built on HFM

    Hi, We have all the Hyperion applications [HFM, Shared Services, FR and other BI + Services] on Hyperion 9.3.1.0 and we have to migrate the FR reports that are built in PROD environment to UAT. These FR Reports which are available on PROD are working

  • Outstanding Bp balance

    Hi All, What is the way to post the Outstanding OB. My problem is: we start the project go-live from Feb 1st. So it is the middle of the financial year. And OB sheet conatins the open payments amounts. i am taking the OB of BPs as of 1st Feb. is it p

  • Advenced Signal Processing 7.5 Run Time Engine in LVIEW 8.2 Installer

    Hello, I am trying ot create an installer using LVIEW 8.2 and I need to include the Advanced Signal Processing Toolkit run-time engine but this is not listed in the 'Additional installers'. I have run and installed the Advanced Signal Processing Tool

  • Problem with bluetooth (iPhone 5)

    My iPhone 5 can't connect with bluetooth to my MacBook Pro (2010) and in the car (Volvo V70, 2011). I have also problem with the internet sharing from iPhone to my MacBook. I need a easy-to-do-step-to-step-list. Thanx! /Britta

  • Bioshd-8 on pavilion all-in-one

    Hi!  This has not been my week.  My HP Pavilion All-in-One PC kept on freezing and crashing on me lately.  I ran the F9 diagnostic and the hard drive test failed. My HD is a WDC WD6400AAKS 65A7B2 (WD-WCASYC373484). The error code came up with BIOHD-8