Snippet Management

I am aquiring a large number of snippets for my project and I
need to manage them. RH7 places the last created snippet at the top
of the list in the snippet pod. I know I can move it up and down by
right clicking on the snippet. However, it only moves one spot at a
time and as this project grows, it will become tedious if not
impossible to continue to group snippets in this manner.
Is there a way to alphabetize the list as a default? If there
is, using proper naming conventions will always keep the list
grouped.
Even dragging and dropping within the list is better then the
right-click: move option

What I am saying is that I used a special search tool that
looks for words inside many different file types. I named the
snippets with words not elsewhere in the help and I included the
same words in the snippets.
By that means I got a list of all the files containing those
words. I expected the list to include the rhvariable.apj file, the
snippet files and the topic using those snippets. What this method
often reveals is other files that contain those words so that you
learn where else RH stores information. Those words do not appear
in any other file.
The program will not search the CPD file in the project so I
searched that by other means. At the moment therefore there seems
to be no way of manipulating the list as you want.

Similar Messages

  • Snippet manager and Extended Script Toolkit

    Is there a snippet manager tool that works with ExtendedScript Toolkit?
    Wondering if it is possible to crete a script file in a code snippet manager and export it into the
    ExtendedScript Toolkit.

    Take a look at the File Object… You have both read & write methods…

  • A good text/snippet manager for OS X?

    Howdy,
    When dealing with a lot of having to use the same or similar text over and over (such as here) it would be nice to have all that text in a manager of some sort where i can just do a quick keyword search, find the relevant info and copy it. I have searched the web but i might not be using the right words to search for, can't find anything useful. Many years ago i had an app that did this but i forgot the name. It was able to handle a big database, URL's were clickable etc.
    Any recommendations? I prefer an app with a solid history on OS X (hoping that will give me a bit more of a guarantee they will be supporting OS X for a long time to come).

    Oh, clever, didn't even know that was possible and yes, those snippets are found in spotlight by document name and contents.
    I did give TextExpander another chance and found most of the issues i had in the past are now resolved. Formatting text is still an issue, i can't format text like adding a URL to selected text but for now this is the best app for the job.
    More suggestions are welcomed, there have to be quite a few users here that use apps like that.

  • Problem with Action binding for a command button in a Managed Bean

    Hi
    Thank you for reading my post
    I am trying to use a backing bean for a button action binding.
    I followed all steps as they seems to be correct. i did not made any changes directly by hand , all of changes are introduced by oracle
    Jdeveloper wizards. but now i get this exception
    Managed bean is defined in faces-config.xml (it shows in preview mode) , the method is there in managed bean (Jdeveloper itself create the method i just enter its name)
    can you please take a look and tell me what can be wrong?
    thanks
    here is method and its body in managed bean
    public String userAccept_action() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding =
                bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        }here is the exception that i recive
    javax.faces.FacesException: #{ButtonActions.userAccept_action}: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adf.share.security.authentication.AuthenticationFilter.handleAuthentication(AuthenticationFilter.java:177)
         at oracle.adf.share.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:112)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at webui.common.CharacterEncoding.doFilter(CharacterEncoding.java:26)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:105)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:167)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:415)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:143)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 34 more
    Caused by: javax.faces.FacesException: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:292)
         at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
         at oracle.adfinternal.view.faces.el.AdfFacesVariableResolver.resolveVariable(AdfFacesVariableResolver.java:40)
         at oracle.adfinternal.view.faces.model.VariableResolverUtils$JspResolver.resolveVariable(VariableResolverUtils.java:79)
         at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         ... 37 more
    Caused by: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.config.ManagedBeanFactory.evaluateValueBindingGet(ManagedBeanFactory.java:911)
         at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:567)
         at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:253)
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
         ... 43 more

    Thank you for reply , but it does not helps or maybe i did not apply it correctly
    here is faces-config.xml code snippet :
    <managed-bean>
        <managed-bean-name>ButtonActions</managed-bean-name>
        <managed-bean-class>webui.common.actionListener.ButtonAction</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
        <managed-property>
          <property-name>bindings</property-name>
          <value>#{bindings}</value>
        </managed-property>
      </managed-bean>here is binding for the button in jsp file :
    <af:commandButton
                                    text="#{res['button.accept']}"
                                    disabled="#{!bindings.Commit.enabled}"
                                    action="#{ButtonActions.userAccept_action}"/>and here is some code portion of ButtonAction class
    package webui.common.actionListener;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    public class ButtonAction {
        private BindingContainer bindings;
        public ButtonAction() {
        public BindingContainer getBindings() {
            return this.bindings;
        public void setBindings(BindingContainer bindings) {
            this.bindings = bindings;
        public String userAccept_action() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding =
                bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
    }and i still get the same error.

  • Replace vertical navigation in custom master page from snippet gallery

    Hi.
    I'm creating a new master page from seattle.master and I'm trying to implement a customized snippet from the snippet gallery into the master page code without success.  The following line is straight from a seattle.master page:
    <div id="sideNavBox" class="ms-dialogHidden ms-forceWrap ms-noList">
    From here, I see where I think the replacement snippet should go; however, there are discrepancies between the structure of the snippet and the code I'm replacing.  Also, the snippet from the gallery is calling some ASP registrations that I
    don't see in the original master page code.
    How can I insert my custom vertical navigation snippet into this master page? 

    Hi,
    You want to replace the entire <div id="sideNavBox" /> found in your custom HTML Master Page. Your custom vertical navigation will need to replace the entire container and all of its child controls.
    Your custom vertical navigation snippet should start similar to:
    <div data-name="QuickLaunch">
    <!--CS: Start Vertical Navigation Snippet-->
    <!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
    <!--SPM:<%@Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation" Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
    <div id="sideNavBox" class="ms-dialogHidden ms-forceWrap ms-noList">
    Design Manager's snippet manager adds the Register tags into the snippet so that the snippet is self-contained. Your HTML Master Page likely contains these Register tags already but you can leave them as Design Manager will handle any duplicates for you.
    The structure of the snippet itself appears different because the seattle.html HTML Master Page includes modifications.
    Eric Overfield - PixelMill -
    ericoverfield.com -
    @EricOverfield

  • Code Snippets in MEF Editor extension VS2012

    I am trying to implement code snippets with a MEF editor extension, I followed the walkthrough "Implementing Code Snippets" from the link: http://msdn.microsoft.com/en-us/library/ff926100(v=vs.110).aspx
    The implementation is based on the walkthrough Displaying Statement Completion. This feature works fine.
    The first section of "Implementing Code Snippets" is "Creating and Registering Code Snippets" which does not work. At the end of the section is the step 8:
    Build and run the project. In the experimental instance of Visual Studio that starts when the project is run, the snippet you just registered
    should be displayed in the Code Snippets Manager under
    the TestSnippets language.
    There are no errors, but the Code Snippets Manager does not display the TestSnippets language, and as a consequence the snippets are not there. I have been stuck for a few weeks now with this, and could not find resources to understand the issue.
    Any idea on how to overcome this issue will be much appreciated.
    Thanks

    Hi,
    I have to say that I can reproduce your issue on my machine via the steps provided in the walkthrough. However, I finally add that code snippets to C# language not that custom TestSnippets language.
    Here are some modifications which are made on my side, maybe these listed items can be helpful for you to trouble-shoot your issue:
    1). Delete the following line from the test.snippet file.
    <?xml version="1.0" encoding="utf-8" ?>
    2). Edit the test.snippet file, set <Code Language="CSharp">
    3). Edit the SnippetIndex.xml file, set  <Language Lang="CSharp" Guid="{694DD9B6-B865-4C5B-AD85-86356E9C88DC}">
    4). Edit the SnippetUtilities class, and set
    internal const string LanguageServiceGuidStr = "694DD9B6-B865-4C5B-AD85-86356E9C88DC";
    5). Then build and run your project again. And this time you should get the snippet under C# language.
    Thanks.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • OOTB Left Navigation error in Page Layout SharePoint 2013

    I created a SharePoint 2013 master page through Design Manager in Sharepoint 2013 and created a page layout like we do trough sharepoint designer as in sharepoint 2010 steps are below
    SharePoint Designer--->Page Layouts---->New Page Layout
    now i want to insert left navigation in the page layout ,i tried to insert the following snippet in the page layout 
    <div data-name="QuickLaunch">
                                        <!--CS: Start Vertical Navigation Snippet-->
                                        <!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint,
    Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
                                        <!--SPM:<%@Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation"
    Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
                                        <div id="sideNavBox" class="ms-dialogHidden ms-forceWrap ms-noList">
                                            <!--MS:<SharePoint:AjaxDelta ID="DeltaPlaceHolderLeftNavBar" BlockElement="true" CssClass="ms-core-navigation"
    runat="server">-->
                                                <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftNavBar" runat="server">-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftNavBarTop" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderQuickLaunchTop" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftNavBarDataSource" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderCalendarNavigator" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderLeftActions" runat="server">-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                    <!--MS:<SharePoint:SPNavigationManager ID="QuickLaunchNavigationManager"
    runat="server" QuickLaunchControlId="v4QuickLaunchMenu" ContainedControl="QuickLaunch" EnableViewState="false">-->
                                                        <!--MS:<SharePoint:DelegateControl runat="server" ControlId="QuickLaunchDataSource">-->
                                                            <!--MS:<Template_Controls>-->
                                                                <!--MS:<PublishingNavigation:PortalSiteMapDataSource
    runat="server" ID="SiteMapDS" SiteMapProvider="CurrentNavigation" EnableViewState="false" StartFromCurrentNode="true" ShowStartingNode="false" TrimNonCurrentTypes="Heading">-->
                                                                <!--ME:</PublishingNavigation:PortalSiteMapDataSource>-->
                                                            <!--ME:</Template_Controls>-->
                                                        <!--ME:</SharePoint:DelegateControl>-->
                                                        <!--MS:<SharePoint:AspMenu ID="V4QuickLaunchMenu" runat="server"
    EnableViewState="false" DataSourceId="QuickLaunchSiteMap" UseSimpleRendering="true" Orientation="Vertical" StaticDisplayLevels="3" AdjustForShowStartingNode="true" MaximumDynamicDisplayLevels="0"
    SkipLinkText="">-->
                                                        <!--ME:</SharePoint:AspMenu>-->
                                                    <!--ME:</SharePoint:SPNavigationManager>-->
                                                    <!--MS:<SharePoint:SPNavigationManager ID="TreeViewNavigationManagerV4" runat="server"
    ContainedControl="TreeView" CssClass="ms-tv-box">-->
                                                        <!--MS:<SharePoint:SPLinkButton runat="server" NavigateUrl="~site/{0}/viewlsts.aspx"
    ID="idNavLinkSiteHierarchyV4" Text="&#60;%$Resources:wss,treeview_header%&#62;" accesskey="&#60;%$Resources:wss,quiklnch_allcontent_AK%&#62;" CssClass="ms-tv-header">-->
                                                        <!--ME:</SharePoint:SPLinkButton>-->
                                                        <!--MS:<SharePoint:DelegateControl runat="server" ControlId="TreeViewAndDataSource">-->
                                                            <!--MS:<Template_Controls>-->
                                                                <!--MS:<SharePoint:SPHierarchyDataSourceControl
    runat="server" ID="TreeViewDataSourceV4" RootContextObject="Web" IncludeDiscussionFolders="true">-->
                                                                <!--ME:</SharePoint:SPHierarchyDataSourceControl>-->
                                                                <!--MS:<SharePoint:SPRememberScroll runat="server"
    ID="TreeViewRememberScrollV4" onscroll="javascript:_spRecordScrollPositions(this);" style="overflow: auto;">-->
                                                                    <!--MS:<SharePoint:SPTreeView
    ID="WebTreeViewV4" runat="server" ShowLines="false" DataSourceId="TreeViewDataSourceV4" ExpandDepth="0" SelectedNodeStyle-CssClass="ms-tv-selected" NodeStyle-CssClass="ms-tv-item" SkipLinkText=""
    NodeIndent="12" ExpandImageUrl="/{0}/images/tvclosed.png" ExpandImageUrlRtl="/{0}/images/tvclosedrtl.png" CollapseImageUrl="/{0}/images/tvopen.png" CollapseImageUrlRtl="/{0}/images/tvopenrtl.png" NoExpandImageUrl="/{0}/images/tvblank.gif">-->
                                                                    <!--ME:</SharePoint:SPTreeView>-->
                                                                <!--ME:</SharePoint:SPRememberScroll>-->
                                                            <!--ME:</Template_Controls>-->
                                                        <!--ME:</SharePoint:DelegateControl>-->
                                                    <!--ME:</SharePoint:SPNavigationManager>-->
                                                    <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderQuickLaunchBottom" runat="server">-->
                                                        <hr />
                                                        <!--MS:<SharePoint:ClusteredSPLinkButton ID="idNavLinkViewAllV4"
    runat="server" Permissions="ViewFormPages" NavigateUrl="~site/{0}/viewlsts.aspx" Text="&#60;%$Resources:wss,quiklnch_allcontent_short%&#62;" accesskey="&#60;%$Resources:wss,quiklnch_allcontent_AK%&#62;"
    CssClass="ms-core-listMenu-item">-->
                                                        <!--ME:</SharePoint:ClusteredSPLinkButton>-->
                                                    <!--ME:</asp:ContentPlaceHolder>-->
                                                <!--ME:</asp:ContentPlaceHolder>-->
                                            <!--ME:</SharePoint:AjaxDelta>-->
                                        </div>
                                        <!--CE: End Vertical Navigation Snippet-->
                                    </div>
    but i get the following error when i create page through this page layout
    "Content Place holders are only allowed in master page"
    Can anyone tell me how do i insert left navigation in page layout which is created through sharepoint designer (.aspx file) but master page is created through design manager

    Hi  ,
    As the error says, you need to  add Content Place holders to Mater Page not the Page Layout.
    For  inserting  left navigation, you can add Vertical Navigation SharePoint component to the master page using Snippets  manager:
    1.
    Open the site then click design manager link from right top corner "Settings".
    2.
    Click “Edit Master Pages” link.
    3.Click your custom mater page. It will open preview page.
    4.
    Once open the preview page then click Snippets menu from top right side. It will open “Snippet Gallery” in new tab page.
    5.
    Click the Vertical Navigation menu item in “DESIGN “tab.
    6.
    In this page we can easy to configure component properties.
    After customization must click the update button then only the changes are reflected in the component snippet.
    7.
    Once click the update button the HTML code automatically generated in the “HTML snippet” box and click “Copy to Clipboard” button.
    8.
    Open the mapped network drive then open the Mater Page HTML file and paste HTML snippet where you want the navigation to show.
    Reference:
    http://www.sharepointpals.com/post/Add-snippets-in-Page-layout-using-design-manager
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • JSF 1.2 HashMap - what am I missing?

    I am having an issue and need a second pair of eyes - I am doing something wrong?
    Many thanks in advance for any time or assistance!
    I have a bean with a HashMap which uses an Integer key. My page attempts to get a property from an object in the bean's hashmap. My page shows nothing - no errors, but also no data. It acts as if the .get() gets called, but returns null. I have tried everything I can think of in debug mode, and I have verified the hashmap is returned with item 1 included & intact, but I still see nothing. I also monitor the server console, and see no errors. I am using Sun RI JSF 1.2 & glassfish.
    I have created a sample project to demonstrate.
    *beans.jsp [snippet]:*
    bq. <f:view> \\ <h:outputText id="testText" value="{color:#ff0000}#{bean.nonBeans[1].text}{color}" /> \\ </f:view>
    *faces-config.xml [snippet]:*
    <managed-bean>
    bq. <managed-bean-name>bean</managed-bean-name> \\ <managed-bean-class>com.milsoft.bugReport.Bean</managed-bean-class> \\ <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    *2 classes:*
    package com.milsoft.bugReport;
    import java.util.HashMap;
    public class Bean {
    bq. {color:#ff0000} \\ private HashMap<Integer, NonBean> nonBeans = null;{color} \\ public Bean() { \\ super(); \\ nonBeans = new HashMap<Integer, NonBean>(); \\ {color:#ff0000} nonBeans.put(Integer.valueOf(1), new NonBean("One"));{color} \\ nonBeans.put(Integer.valueOf(2), new NonBean("Two")); \\ nonBeans.put(Integer.valueOf(3), new NonBean("Three")); \\ } \\ {color:#ff0000} \\ public HashMap<Integer, NonBean> getNonBeans() { \\ return nonBeans; \\ }{color} \\ public void setNonBeans(HashMap<Integer, NonBean> nonBeans) { \\ this.nonBeans = nonBeans; \\ }
    bq.
    package com.milsoft.bugReport;
    public class NonBean {
    bq. private String text; \\ public NonBean(String text) { \\ this.text = text; \\ } \\ {color:#ff0000} \\ public String getText() { \\ return text; \\ }{color} \\ public void setText(String text) { \\ this.text = text; \\ }

    If you change the nonBeans property of Bean to something like this:
    nonBeans = new HashMap<Long, NonBean>();
    it does work!
    The Expression Language Specification Version 2.1 makes you understand that integer literals are treated as Long objects.
    The following specification's sections mention Long as the type for integer literals:
    *1.7 Arithmetic Operators*
    Arithmetic is provided to act on integer (BigInteger and Long) and floating point
    *(BigDecimal and Double)...*
    *1.9 Collected Syntax*
    The value of an IntegerLiteral ranges from Long.MIN_VALUE to
    Long.MAX_VALUE...
    furthermore, many sections about operators mention the coercing to Long
    That way you cannot use Integer as key, as Integer objects are only comparable to other Integer objects.
    Your value into nonBeans[1] is being turned into something like nonBeans.get(new Long(1))

  • Backing bean not holding values!

    I have created a simple login page for an app I am creating. I have used JSPX, and created a backing bean which is registered as a managed bean. Just for interests sake (to check that things work), i initialise the userName and password attributes - and I see these defualt values in the gui (OK), however when I entered a user name and password, the values are not updated, so my login code (bound to the action of a commandButton) cannot get the values and log me in.
    my faces-config.xml has this snippet:
    <managed-bean>
    <managed-bean-name>LoginBean</managed-bean-name>
    <managed-bean-class>userinterface.backing.LoginBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    my JSPX has definitions like this:
    <h:inputText id="userName" value="#{LoginBean.userName}" required="true"/>
    my backing bean has the attributes defined:
    private String password = "testPass";
    private String userName = "testUser";
    i just dont understand what I am missing. From the documentation I have read, setting the value attribute by binding it the the backing beans attributes should be enough to update the values... but apparently not.
    Also, when I press "login" the username and password fields are cleared... is this normal behviour?
    I am sure my backing bean is correctly defined as the fields show with default values, and the command buttons worrk. Do I need to hook up the getters and setters in the JSPX page?
    Thanks for any insight - this is fun technology to play with, but trying to get some simple things up and running can be frustrating!
    /caj

    I found the problem eventually - the structure in my jspx document was incorrect, as I had mananged to split my from into two forms, and the submit commandButton was only submitting the form that the button resided on. The edited information was on the other form, and was thus not sumbitted. Once I merged the form into one, the whole thing worked perfectly!!
    I figured that I did something wrong - hope this mistake can help others.
    /caj

  • Page to top

    Can anybody tell me the code to get the page to go right to
    the top and left hand side of a html page (without that small space
    that is automatically allowed when setting up a page)
    Regards

    ..... it's probably bulging at the seams too, after all these
    years :-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    CSS Tutorials for Dreamweaver
    http://www.adobe.com/devnet/dreamweaver/css.html
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    >I have a good snippet manager. 8)
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Brendon" <[email protected]> wrote in message
    > news:[email protected]...
    >> Murray - slow down!
    >> You are embarassing the rest of us with your replies
    like that - 3
    >> answers...how are the rest of us supposed to get
    full page articles and
    >> interviews when you steal all the glory with the
    best answer straight
    >> off?
    >> Geesh!
    >>
    >> ;-)
    >>
    >> Brendon
    >>
    >> "Murray *ACE*"
    <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Link to an external stylesheet (using DW's CSS
    editor), or embed a
    >>> stylesheet in your code (between <head>
    and </head>) with the following
    >>> style in it (embedded shown for cut-n-paste
    convenience) (assuming you
    >>> want zero margins) -
    >>>
    >>> <style type="text/css">
    >>> <!--
    >>> body { margin-top: 0; margin-right: 0;
    margin-bottom: 0; margin-left: 0;
    >>> padding:0; }
    >>> -->
    >>> </style>
    >>> (when the value is zero, units are not required)
    >>>
    >>> you could also try
    >>>
    >>> body { margin: 0 0 0 0; padding:0; }
    >>>
    >>> or
    >>>
    >>> body { margin:0; padding:0; }
    >>>
    >>> as a shorthand method.
    >>>
    >>> --
    >>> Murray --- ICQ 71997575
    >>> Adobe Community Expert
    >>> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >>> ==================
    >>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>> ==================
    >>>
    >>>
    >>> "XMLman" <[email protected]>
    wrote in message
    >>> news:[email protected]...
    >>>> Can anybody tell me the code to get the page
    to go right to the top and
    >>>> left hand side of a html page (without that
    small space that is
    >>>> automatically allowed when setting up a
    page)
    >>>>
    >>>> Regards
    >>>
    >>>
    >>
    >>
    >
    >

  • RichTreeTable manipulations

    Hello,
    we are developing a web-application with JDeveloper11 TP4 and we are using the RichTreeTable Control.
    Since we have a vast amount of data, which is retrieved via webservice from TSO-Host, and quite some users logged in at the same time, we do just-in-time loading to avoid server-memory problems.
    That means when the user clicks the expand button (+), we reload the next level data for this node into the tree-model.
    When collapsing the node (-) we discard the data for all sublevels of this node from the tree-model.
    Additionally we would like to have only one path open at the same time. That means we close all nodes beside the ones leading to the one the user has just expanded/collapsed and we only keep the data for these open nodes.
    To do this we have a rowDisclosureEvent Listener, where we do the following actions:
    1.) get the removed or added RowKeySet via getRemovedSet()/getAddedSet() from the rowDisclosureEvent
    2.) add or remove the data accordingly in the tree-model
    3.) we remove all keys from the disclosedRowKeys Set of the treeTable, except the RowKeys of the nodes in the path of the actually expanded/collapsed node. We do this via theTreeTable.setDisclosedRowKeys(newOpenKeySet)
    This works fine except for one blocking problem: with the partial roundtrip that is done to update the treeTable, the new set of disclosedRowKeys is not applied. All nodes are still displayed and treated as open by the treeTable. Only after clicking a component that triggers a full postback (like commandButton) the treeTable displays the new set of disclosedRowKeys.
    Does anyone know if and how the RichTreeTable can be forced to apply the changed disclosedRowKeySet immediately or have an idea or example how else it is possible to implement the desired behaviour.
    Regards, Bruno

    Here is the code that keep only one node expanded:
    TreeBean.java
    package oracle.test.web.backing;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import org.apache.myfaces.trinidad.event.RowDisclosureEvent;
    import org.apache.myfaces.trinidad.model.ChildPropertyTreeModel;
    import org.apache.myfaces.trinidad.model.CollectionModel;
    import org.apache.myfaces.trinidad.model.RowKeySet;
    import org.apache.myfaces.trinidad.model.RowKeySetTreeImpl;
    public class TreeBean
      private RowKeySet treeDisclosedRowKeys = null;
      private CollectionModel collectionModel = null;
      public TreeBean()
        //Init data model
        TreeNode root = new TreeNode( "Countries", null );
        TreeNode europe =  new TreeNode( "Europe", root );
        TreeNode europe_germany =  new TreeNode( "Germany", europe );
        TreeNode europe_germany_munchen =  new TreeNode( "Munchen", europe_germany );
        TreeNode europe_germany_berlin =  new TreeNode( "Berlin", europe_germany );
        TreeNode europe_france =  new TreeNode( "France", europe );
        TreeNode europe_france_paris =  new TreeNode( "Paris", europe_france );
        TreeNode europe_france_lion =  new TreeNode( "Lion", europe_france );
        TreeNode europe_belgium =  new TreeNode( "Belgium", europe );
        TreeNode america =  new TreeNode( "America", root );
        TreeNode america_us =  new TreeNode( "U.S.", america );
        TreeNode america_us_boston =  new TreeNode( "Boston", america_us );
        TreeNode america_us_washington =  new TreeNode( "Washington", america_us );
        TreeNode america_us_huston =  new TreeNode( "Huston", america_us );
        TreeNode america_us_dallas =  new TreeNode( "Dallas", america_us );
        TreeNode america_canada =  new TreeNode( "Canada", america );
        TreeNode asia =  new TreeNode( "Asia", root );
        TreeNode asia_china =  new TreeNode( "China", asia );
        TreeNode asia_india =  new TreeNode( "India", asia );
        TreeNode asia_thailand =  new TreeNode( "Thailand", asia );
        collectionModel = new ChildPropertyTreeModel( root, "children" );
        //Init disclosed row keys model
        treeDisclosedRowKeys = new RowKeySetTreeImpl();
        treeDisclosedRowKeys.setCollectionModel( collectionModel );
      public void rowDisclosureListener(RowDisclosureEvent rowDisclosureEvent)
        //If node was expanded
        Iterator added = rowDisclosureEvent.getAddedSet().iterator();
        while (added.hasNext())
          Object rowKey = added.next();
          System.out.println( "Expanded: " + rowKey );
          treeDisclosedRowKeys.clear();
          //Keep open all the nodes from current to root
          List path = (List)rowKey;
          for( int i=0; i< path.size(); i++ )
            List<Object> nodePath = new ArrayList<Object>();
            for( int j=0; j<i; j++ )
              nodePath.add( path.get( j ) );
            treeDisclosedRowKeys.add( nodePath );
            System.out.println( "Added " + nodePath );       
          //Add just open one
          treeDisclosedRowKeys.add( rowKey );
          System.out.println( "Added " + rowKey );
        System.out.println( "disclosed Keys: " + treeDisclosedRowKeys );
      public void setTreeDisclosedRowKeys(RowKeySet treeDisclosedRowKeys)
        this.treeDisclosedRowKeys = treeDisclosedRowKeys;
      public RowKeySet getTreeDisclosedRowKeys()
        return treeDisclosedRowKeys;
      public CollectionModel getCollectionModel()
        return collectionModel;
    }TreeNode.java
    package oracle.test.web.backing;
    import java.util.ArrayList;
    import java.util.List;
    public class TreeNode
      private String name;
      private List<TreeNode> children = new ArrayList<TreeNode>();
      private TreeNode parent;
      public TreeNode()
      public TreeNode( String name, TreeNode parent )
        this.name = name;
        this.parent = parent;
        if( this.parent != null )
          this.parent.getChildren().add( this );
      public void setName(String name)
        this.name = name;
      public String getName()
        return name;
      public void setChildren(List<TreeNode> children)
        this.children = children;
      public List<TreeNode> getChildren()
        return children;
      public void setParent(TreeNode parent)
        this.parent = parent;
      public TreeNode getParent()
        return parent;
    }.jspx file:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document maximized="false">
          <af:form>
            <af:panelBox text="Countries" partialTriggers="tree">
              <af:tree id="tree"
                       value="#{treeBean.collectionModel}"
                       var="node"
                       contentDelivery="immediate"
                       disclosedRowKeys="#{treeBean.treeDisclosedRowKeys}"
                       rowDisclosureListener="#{treeBean.rowDisclosureListener}">
                <f:facet name="nodeStamp">
                      <af:outputText value="#{node.name}"/>
                </f:facet>
              </af:tree>
            </af:panelBox>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>faces-config.xml snippet:
      <managed-bean>
        <managed-bean-name>treeBean</managed-bean-name>
        <managed-bean-class>oracle.test.web.backing.TreeBean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>Dan.

  • Custom Page layout and related tmp files causing issues

    Hello,
    I am trying to create custom page layouts using Design Manager and then editing the html file using a text editor.
    I have created a content type (inherited from Page content type) and used this content type for my page layout. I used the snippet manager to add relevant webpart zones and snippets I needed and published the page layout. Under status it shows conversion
    successful but I can see another file with similar name to my page laout but with ~RF119c862.TMP being created. 
    Even if I publish my page layout my webparts (via snippets I added) doesn't reflect in the page. I checked the preview of my page layouts and webparts appear when it is in draft mode but the moment I publish it loses all snippets (webparts). 
    I checked the html even after the page layout is published and I can see all webpart zones, my divs and snippet code there, somehow once I publish it the corresponding aspx page doesn't get updated.
    Has anybody come across this before, I'm trying this on Office 365 tenant site.
    Regards,
    Manoj
    -- The opinions expressed here represent my own and not those of anybody else -- http://manojvnair.blogspot.com

    I have seen a similar problem on-prem when a client had distributed cache misconfigured, but as your problem is with SPO, I doubt that is the problem.
    Try creating another page layout but keep its associated content type untouched. Try adding snippets and such, publish and see what happens. If that works, then there must be something wrong with your custom content type.
    Also, when you save a change to your .html page layout, open its associated aspx page layout in SPD and see if your changes were reflected there as well. As soon as your edit a html page layout and save your changes, SharePoint should automatically update
    your aspx page layout right away.
    Eric Overfield - PixelMill -
    blog.pixelmill.com/ericoverfield -
    @EricOverfield

  • Organizing javascript files

    Does anyone have a recommendation to manage and organize a large number of javascript files?
    Presently, I use Sublime Text 2 to preview javascript files and edit in Adobe ESTK.
    I am looking for an efficient method to search for javascript snippets and functions inside javascript files.
    Can javascript files store searchable metadata about the javascript file?

    I had the same problem myself - it took a while but I've moved from the JSX folder chaos to a less chaotic snippets management with this free software: http://snippets.me (which has also sync features that go beyond my little needs)
    There are other similar solutions like: http://www.gistoapp.com (that also integrate with Gist), and other I might not know.
    You have to spend some time copying and pasting to create your own database, but no doubts the maintenance is easier.
    Hope this helps,
    Davide Barranca
    www.davidebarranca.com
    www.cs-extensions.com

  • Security Idenitity 2.0 Email Confirmation Token Create with one account validate with a different account

    Howdy,
    I extended the security model and made it multi-tenant, however when I create a email confirmation token in the admin tool, when I try and validate it, in one of the applications, it fails.  In the admin tool, I create a UserManager with all of
    the settings as if it were the application, but when the validation occures in the application it still fails.  The only way I can get it to work, is if I use the same app pool for both the application and the admin, or if I set the user account of both
    app Pools to the same service account.  How can I get it to work where I create a token in one app, and validate in another app?  Could I use impersonation?  Is there something I can do to the two service accounts to allow one to generate
    a token and the other to validate?

    Let's see if I can answer these in order...
    1.  We built several web applications using MVC 5.2, EF 6.0, Idenity 2.0
    2.  We are using MS Visual Studio 2013, running on VM with Windows Server 2008 R2, .NET 4.5.1
    3.  The problem is we want to have each application have a different service account to make them more secure.  We have an admin tool that allows us to add new applications to the Membership database, and new users to those applications.  The
    problem occurs when I create an email security token in the admin tool, and send it to the use who is then validated on the specific application.  If I make the service account of the application and the admin the same it works, if not it fails.
    I don't think the code is the problem, as it works fine if the service account for the application and the admin are the same.  It only fails when I use seperate service accounts, but here you go.
    Admin snippet:
    Manage Controller - RegisterUser
    varuser =
    newApplicationUser()
    { UserName = model.UserName, Email = model.Email, IsActive = model.SelectedIsActive, IsPswdChgRequired = model.SelectedIsPswdChgRequired, TenantId = model.TenantId };
    UserManager<ApplicationUser,
    int> um = CreateUserManager(Convert.ToInt32(model.SelectedTenantId));
    private UserManager<ApplicationUser, int> CreateUserManager(int TenantId)
                var provider = new Microsoft.Owin.Security.DataProtection.DpapiDataProtectionProvider(GetTenantName(TenantId));
                UserManager<ApplicationUser, int> um = new UserManager<ApplicationUser, int>(new ApplicatonUserStore(new ApplicationDbContext()) { TenantId = TenantId });
                um.UserTokenProvider = new Microsoft.AspNet.Identity.Owin.DataProtectorTokenProvider<ApplicationUser, int>(provider.Create("EmailConfirmation"));
    Application snippet:
    AccountController - constructor
    var
    provider =
    newMicrosoft.Owin.Security.DataProtection.DpapiDataProtectionProvider(ConfigurationManager.AppSettings["TenantName"]);
                userManager.UserTokenProvider =
    newMicrosoft.AspNet.Identity.Owin.DataProtectorTokenProvider<ApplicationUser,
    int>(provider.Create("EmailConfirmation"));
    public async Task<ActionResult> ConfirmEmail(string userId, string ecode, string scode)
                if (userId == null || ecode == null || scode == null)
                    return View("Error");
                var result = await UserManager.ConfirmEmailAsync(Convert.ToInt32(userId), ecode);
                if (result.Succeeded)

  • Update app not installed ?

    I find update app "CodeBox" in my app store while its not installed I have never bought it and its my account not someone else how can I delete it ?!!

    One or two questions.
    Are you the only person with access to your machine?
    Was it new or second hand when you obtained it?
    Have you looked in 'Hidden apps' for it?
    iTunes Store: Hiding and unhiding purchases
    Codebox is a developer tool available from the App Store.    Most items like this can be dragged to the trash to delete unless there's an uninstaller provided by the developer.  This will tell you about the app.
    CodeBox — Code Snippet Manager for Mac OS X
    You may not have downloaded this one but for future information the golden rule is ... never download a program without first learning how to uninstall it.

Maybe you are looking for