在React中的其他JS表单上弹出模式对话框

时间:2019-04-08 20:36:26

标签: javascript reactjs

我有2个Java文件,当我单击第一个JS文件中的按钮时,我希望另一个JS文件出现在屏幕上。这是我的代码:

这是他们将单击按钮的文件:

class CreateChannelForm extends Component {
            return (
                        <Form>
                            <Button.Group floated='right'>
                                <Button disabled={!this.isFormValid()}  onClick={this.onSubmitClick} >Submit</Button>
                            </Button.Group>
                        </Form>   
            )
    }




export default CreateChannelForm

在我的第二个文件中,我有这个:

class GenerateChannelInfo extends Component {
    render() {


            return (
                <div style={{width: '50rem', margin: '1rem'}}>
                    <Header as='h2' textAlign='center' style={styles.mainHeader}>Add IRD</Header>

                    <Segment raised className='magentaSegment'>
                        <Header as='h3' textAlign='center'>
                            Create New IRD
                        </Header>

                        <Form onSubmit={formSubmitType} style={{paddingBottom: '2.5em'}} error={this.props.networksHasErrored}>
                            <Form.Group widths='equal'>
                            </Form.Group>
                            <Form.Select fluid search label='Datacenter' name='dataCenterValue' value={dataCenterValue} options={dataCenters} placeholder='Choose Datacenter' onChange={this.handleInputChange} />
                        </Form>
                    </Segment>
                </div>
            )
    }
}

export default GenerateChannelInfo

那么当我单击onClick按钮时,是否有一种方法可以轻松地完成GenerateChannelInfo的模态?

1 个答案:

答案 0 :(得分:-1)

您可以更新org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in org.flowable.admin.conf.DatabaseConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [liquibase.Liquibase]: Factory method 'liquibase' threw exception; nested exception is or g.flowable.app.service.exception.InternalServerErrorException: Error creating liquibase database at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:587) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1250) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:760) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization( 以使用状态控制模式:

CreateChannelForm